home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / cxref_1_4a.lha / parse-yacc.c < prev    next >
C/C++ Source or Header  |  1997-12-07  |  101KB  |  2,429 lines

  1.  
  2. /*  A Bison parser, made from parse.y
  3.  by  GNU Bison version 1.25
  4.   */
  5.  
  6. #define YYBISON 1  /* Identify Bison output.  */
  7.  
  8. #define    IDENTIFIER    258
  9. #define    TYPE_NAME    259
  10. #define    LITERAL    260
  11. #define    STRING_LITERAL    261
  12. #define    ELLIPSES    262
  13. #define    MUL_ASSIGN    263
  14. #define    DIV_ASSIGN    264
  15. #define    MOD_ASSIGN    265
  16. #define    ADD_ASSIGN    266
  17. #define    SUB_ASSIGN    267
  18. #define    LEFT_ASSIGN    268
  19. #define    RIGHT_ASSIGN    269
  20. #define    AND_ASSIGN    270
  21. #define    XOR_ASSIGN    271
  22. #define    OR_ASSIGN    272
  23. #define    EQ_OP    273
  24. #define    NE_OP    274
  25. #define    PTR_OP    275
  26. #define    AND_OP    276
  27. #define    OR_OP    277
  28. #define    DEC_OP    278
  29. #define    INC_OP    279
  30. #define    LE_OP    280
  31. #define    GE_OP    281
  32. #define    LEFT_SHIFT    282
  33. #define    RIGHT_SHIFT    283
  34. #define    SIZEOF    284
  35. #define    TYPEDEF    285
  36. #define    EXTERN    286
  37. #define    STATIC    287
  38. #define    AUTO    288
  39. #define    REGISTER    289
  40. #define    CONST    290
  41. #define    VOLATILE    291
  42. #define    VOID    292
  43. #define    INLINE    293
  44. #define    CHAR    294
  45. #define    SHORT    295
  46. #define    INT    296
  47. #define    LONG    297
  48. #define    SIGNED    298
  49. #define    UNSIGNED    299
  50. #define    FLOAT    300
  51. #define    DOUBLE    301
  52. #define    STRUCT    302
  53. #define    UNION    303
  54. #define    ENUM    304
  55. #define    CASE    305
  56. #define    DEFAULT    306
  57. #define    IF    307
  58. #define    ELSE    308
  59. #define    SWITCH    309
  60. #define    WHILE    310
  61. #define    DO    311
  62. #define    FOR    312
  63. #define    GOTO    313
  64. #define    CONTINUE    314
  65. #define    BREAK    315
  66. #define    RETURN    316
  67. #define    ASM    317
  68.  
  69.  
  70. /***************************************
  71.   $Header: /home/amb/cxref/RCS/parse.y 1.29 1997/11/20 19:19:07 amb Exp $
  72.  
  73.   C Cross Referencing & Documentation tool. Version 1.4a.
  74.  
  75.   C parser.
  76.   ******************/ /******************
  77.   Written by Andrew M. Bishop
  78.  
  79.   This file Copyright 1995,96,97 Andrew M. Bishop
  80.   It may be distributed under the GNU Public License, version 2, or
  81.   any higher version.  See section COPYING of the GNU Public license
  82.   for conditions under which this file may be redistributed.
  83.   ***************************************/
  84.  
  85. #include <string.h>
  86. #include "parse-yy.h"
  87. #include "cxref.h"
  88. #include "memory.h"
  89.  
  90. /*+ A structure to hold the information about an object. +*/
  91. typedef struct _stack
  92. {
  93.  char *name;                    /*+ The name of the object. +*/
  94.  char *type;                    /*+ The type of the object. +*/
  95.  char *qual;                    /*+ The type qualifier of the object. +*/
  96. }
  97. stack;
  98.  
  99. #define yylex cxref_yylex
  100.  
  101. static int cxref_yylex(void);
  102.  
  103. static void yyerror(char *s);
  104.  
  105. /*+ When in a header file, some stuff can be skipped over quickly. +*/
  106. extern int in_header;
  107.  
  108. /*+ A flag that is set to true when typedef is seen in a statement. +*/
  109. int in_typedef=0;
  110.  
  111. /*+ The scope of the function / variable that is being examined. +*/
  112. static int scope;
  113.  
  114. /*+ The variable must be LOCAL or EXTERNAL or GLOBAL, so this checks and sets that. +*/
  115. #define SCOPE ( scope&(LOCAL|EXTERNAL|EXTERN_H|EXTERN_F) ? scope : scope|GLOBAL )
  116.  
  117. /*+ When in a function or a function definition, the behaviour is different. +*/
  118. static int in_function=0,in_funcdef=0,in_funcbody=0;
  119.  
  120. /*+ The parsing stack +*/
  121. static stack first={NULL,NULL,NULL},  /*+ first value. +*/
  122.             *list=NULL,               /*+ list of all values. +*/
  123.             *current=&first;          /*+ current values. +*/
  124.  
  125. /*+ The depth of the stack +*/
  126. static int depth=0,             /*+ currently in use. +*/
  127.            maxdepth=0;          /*+ total malloced. +*/
  128.  
  129. /*+ Declarations that are in the same statement share this comment. +*/
  130. static char* common_comment=NULL;
  131.  
  132. /*+ When inside a struct / union / enum definition, this is the depth. +*/
  133. static int in_structunion=0;
  134.  
  135. /*+ When inside a struct / union definition, this is the component type. +*/
  136. static char *comp_type=NULL;
  137.  
  138. /*+ To solve the problem where a type name is used as an identifier. +*/
  139. static int in_type_spec=0;
  140.  
  141.  
  142. /*++++++++++++++++++++++++++++++++++++++
  143.   Reset the current level on the stack.
  144.   ++++++++++++++++++++++++++++++++++++++*/
  145.  
  146. static void reset(void)
  147. {
  148.  current->name=NULL;
  149.  current->type=NULL;
  150.  current->qual=NULL;
  151. }
  152.  
  153.  
  154. /*++++++++++++++++++++++++++++++++++++++
  155.   Push a level onto the stack.
  156.   ++++++++++++++++++++++++++++++++++++++*/
  157.  
  158. static void push(void)
  159. {
  160.  if(list==NULL)
  161.    {
  162.     list=(stack*)Malloc(8*sizeof(struct _stack));
  163.     list[0]=first;
  164.     maxdepth=8;
  165.    }
  166.  else if(depth==maxdepth)
  167.    {
  168.     list=Realloc(list,(maxdepth+8)*sizeof(struct _stack));
  169.     maxdepth+=8;
  170.    }
  171.  
  172.  depth++;
  173.  current=&list[depth];
  174.  
  175.  reset();
  176. }
  177.  
  178.  
  179. /*++++++++++++++++++++++++++++++++++++++
  180.   Pop a level from the stack.
  181.   ++++++++++++++++++++++++++++++++++++++*/
  182.  
  183. static void pop(void)
  184. {
  185.  reset();
  186.  
  187.  depth--;
  188.  current=&list[depth];
  189. }
  190.  
  191.  
  192. /*++++++++++++++++++++++++++++++++++++++
  193.   Reset the Parser, ready for the next file.
  194.   ++++++++++++++++++++++++++++++++++++++*/
  195.  
  196. void ResetParser(void)
  197. {
  198.  in_typedef=0;
  199.  scope=0;
  200.  in_function=0;
  201.  in_funcdef=0;
  202.  in_funcbody=0;
  203.  depth=0;
  204.  maxdepth=0;
  205.  if(list) Free(list);
  206.  list=NULL;
  207.  current=&first;
  208.  reset();
  209.  common_comment=NULL;
  210.  in_structunion=0;
  211.  comp_type=NULL;
  212.  in_type_spec=0;
  213. }
  214.  
  215. #ifndef YYSTYPE
  216. #define YYSTYPE int
  217. #endif
  218. #include <stdio.h>
  219.  
  220. #ifndef __cplusplus
  221. #ifndef __STDC__
  222. #ifndef const
  223. #define const
  224. #endif
  225. #endif
  226. #endif
  227.  
  228.  
  229.  
  230. #define    YYFINAL        552
  231. #define    YYFLAG        -32768
  232. #define    YYNTBASE    87
  233.  
  234. #define YYTRANSLATE(x) ((unsigned)(x) <= 317 ? yytranslate[x] : 254)
  235.  
  236. static const char yytranslate[] = {     0,
  237.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  238.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  239.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  240.      2,     2,    85,     2,     2,     2,    83,    77,     2,    68,
  241.     69,    72,    80,    64,    81,    86,    82,     2,     2,     2,
  242.      2,     2,     2,     2,     2,     2,     2,    73,    63,    78,
  243.     65,    79,    74,     2,     2,     2,     2,     2,     2,     2,
  244.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  245.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  246.     70,     2,    71,    76,     2,     2,     2,     2,     2,     2,
  247.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  248.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  249.      2,     2,    66,    75,    67,    84,     2,     2,     2,     2,
  250.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  251.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  252.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  253.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  254.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  255.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  256.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  257.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  258.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  259.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  260.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  261.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  262.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  263.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  264.     16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  265.     26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
  266.     36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
  267.     46,    47,    48,    49,    50,    51,    52,    53,    54,    55,
  268.     56,    57,    58,    59,    60,    61,    62
  269. };
  270.  
  271. #if YYDEBUG != 0
  272. static const short yyprhs[] = {     0,
  273.      0,     1,     3,     5,     8,    10,    12,    14,    16,    18,
  274.     21,    25,    28,    30,    32,    35,    37,    40,    42,    45,
  275.     47,    48,    53,    55,    57,    60,    63,    67,    70,    72,
  276.     76,    78,    81,    85,    90,    92,    95,    97,   101,   104,
  277.    108,   112,   117,   120,   124,   128,   133,   135,   138,   140,
  278.    143,   146,   150,   152,   156,   158,   160,   162,   166,   167,
  279.    168,   175,   177,   179,   181,   183,   185,   187,   189,   191,
  280.    194,   196,   198,   200,   202,   204,   206,   208,   210,   212,
  281.    214,   216,   218,   221,   224,   226,   229,   232,   234,   236,
  282.    238,   240,   242,   244,   246,   248,   250,   253,   255,   257,
  283.    258,   264,   265,   272,   274,   277,   279,   283,   285,   289,
  284.    291,   294,   296,   298,   300,   302,   303,   309,   310,   317,
  285.    320,   322,   324,   326,   328,   329,   335,   336,   343,   346,
  286.    348,   350,   352,   355,   358,   361,   363,   364,   369,   370,
  287.    376,   377,   383,   385,   389,   391,   393,   395,   398,   402,
  288.    404,   406,   408,   409,   413,   415,   417,   420,   423,   427,
  289.    429,   431,   434,   435,   441,   443,   444,   446,   448,   450,
  290.    454,   456,   460,   462,   466,   469,   471,   474,   476,   478,
  291.    480,   482,   484,   486,   488,   490,   492,   494,   496,   498,
  292.    500,   503,   504,   505,   511,   512,   514,   516,   519,   521,
  293.    523,   525,   533,   539,   541,   543,   545,   553,   559,   562,
  294.    566,   570,   574,   579,   584,   589,   595,   601,   604,   607,
  295.    610,   613,   615,   617,   623,   626,   629,   632,   636,   638,
  296.    641,   645,   647,   649,   653,   655,   657,   661,   667,   669,
  297.    671,   673,   675,   677,   679,   681,   683,   685,   687,   689,
  298.    691,   697,   702,   704,   708,   710,   714,   716,   720,   722,
  299.    726,   728,   732,   734,   738,   740,   742,   744,   748,   750,
  300.    752,   754,   756,   758,   762,   764,   766,   768,   772,   774,
  301.    776,   778,   782,   784,   786,   788,   790,   792,   794,   796,
  302.    798,   800,   802,   804,   806,   808,   810,   813,   816,   821,
  303.    828,   835,   838,   841,   844,   847,   852,   855,   858,   861,
  304.    863,   865,   867,   869,   871,   873,   875,   877,   879,   883,
  305.    887,   891,   896,   900,   905,   908,   911,   916,   918,   920,
  306.    922,   924,   926,   929,   933,   934,   935,   941,   943,   945,
  307.    949,   955,   963,   973,   985,   987,   990,   993,   994,   996,
  308.   1000,  1005,  1006,  1008,  1012,  1017,  1020,  1022,  1026,  1027,
  309.   1029,  1033,  1037,  1043,  1048,  1055,  1057
  310. };
  311.  
  312. static const short yyrhs[] = {    -1,
  313.     88,     0,    89,     0,    88,    89,     0,    91,     0,   156,
  314.      0,   243,     0,   194,     0,    91,     0,    90,    91,     0,
  315.     92,    94,    63,     0,    92,    63,     0,    93,     0,   111,
  316.      0,   111,    93,     0,   114,     0,   114,    93,     0,   113,
  317.      0,   113,    93,     0,    96,     0,     0,    94,    64,    95,
  318.     96,     0,    97,     0,   103,     0,   103,   248,     0,   103,
  319.     98,     0,   103,   248,    98,     0,    65,   100,     0,   100,
  320.      0,    99,    64,   100,     0,   198,     0,    66,    67,     0,
  321.     66,    99,    67,     0,    66,    99,    64,    67,     0,   104,
  322.      0,   104,   102,     0,   102,     0,    68,   101,    69,     0,
  323.     70,    71,     0,   102,    70,    71,     0,    70,   241,    71,
  324.      0,   102,    70,   241,    71,     0,    68,    69,     0,   102,
  325.     68,    69,     0,    68,   167,    69,     0,   102,    68,   167,
  326.     69,     0,   105,     0,   104,   105,     0,    72,     0,    72,
  327.    112,     0,    72,   104,     0,    72,   112,   104,     0,   106,
  328.      0,    68,   103,    69,     0,   107,     0,   162,     0,     3,
  329.      0,   105,    70,    71,     0,     0,     0,   105,    70,   108,
  330.    241,   109,    71,     0,     3,     0,    33,     0,    31,     0,
  331.     34,     0,    32,     0,    30,     0,    38,     0,   113,     0,
  332.    112,   113,     0,    35,     0,    36,     0,   115,     0,   122,
  333.      0,   116,     0,   117,     0,   132,     0,   119,     0,   138,
  334.      0,   120,     0,    45,     0,    46,     0,    46,    42,     0,
  335.     42,    46,     0,   118,     0,   118,   113,     0,   117,   118,
  336.      0,    43,     0,    44,     0,    39,     0,    40,     0,    41,
  337.      0,    42,     0,     4,     0,    37,     0,    92,     0,    92,
  338.    101,     0,   123,     0,   130,     0,     0,    49,    66,   124,
  339.    126,    67,     0,     0,    49,   131,    66,   125,   126,    67,
  340.      0,   127,     0,   127,    64,     0,   128,     0,   127,    64,
  341.    128,     0,   129,     0,   129,    65,   198,     0,     3,     0,
  342.     49,   131,     0,     3,     0,     4,     0,   133,     0,   136,
  343.      0,     0,    47,    66,   134,   144,    67,     0,     0,    47,
  344.    137,    66,   135,   144,    67,     0,    47,   137,     0,     3,
  345.      0,     4,     0,   139,     0,   142,     0,     0,    48,    66,
  346.    140,   144,    67,     0,     0,    48,   143,    66,   141,   144,
  347.     67,     0,    48,   143,     0,     3,     0,     4,     0,   145,
  348.      0,   144,   145,     0,   133,    63,     0,   139,    63,     0,
  349.    146,     0,     0,   114,   147,   150,    63,     0,     0,   112,
  350.    114,   148,   150,    63,     0,     0,   114,   112,   149,   150,
  351.     63,     0,   151,     0,   150,    64,   151,     0,   152,     0,
  352.    153,     0,   103,     0,    73,   154,     0,   103,    73,   154,
  353.      0,   198,     0,     3,     0,     4,     0,     0,   158,   157,
  354.    172,     0,   159,     0,   160,     0,    92,   160,     0,   160,
  355.     90,     0,    92,   160,    90,     0,   161,     0,   162,     0,
  356.    104,   162,     0,     0,   164,    68,   163,   165,    69,     0,
  357.    105,     0,     0,   167,     0,   166,     0,     3,     0,   166,
  358.     64,     3,     0,   168,     0,   168,    64,     7,     0,   169,
  359.      0,   168,    64,   169,     0,    92,   103,     0,    92,     0,
  360.     92,   101,     0,   243,     0,   172,     0,   177,     0,   180,
  361.      0,   185,     0,   189,     0,   190,     0,   191,     0,   192,
  362.      0,   193,     0,   194,     0,   195,     0,   170,     0,   171,
  363.    170,     0,     0,     0,    66,   173,   175,   174,    67,     0,
  364.      0,   176,     0,   171,     0,   176,   171,     0,    90,     0,
  365.    179,     0,   178,     0,    52,    68,   196,    69,   170,    53,
  366.    170,     0,    52,    68,   196,    69,   170,     0,   181,     0,
  367.    182,     0,   184,     0,    56,   170,    55,    68,   196,    69,
  368.     63,     0,    57,    68,   183,    69,   170,     0,    63,    63,
  369.      0,   196,    63,    63,     0,    63,   196,    63,     0,    63,
  370.     63,   196,     0,    63,   196,    63,   196,     0,   196,    63,
  371.     63,   196,     0,   196,    63,   196,    63,     0,   196,    63,
  372.    196,    63,   196,     0,    55,    68,   196,    69,   170,     0,
  373.    186,    73,     0,   188,    73,     0,   187,    73,     0,    50,
  374.    241,     0,    51,     0,     3,     0,    54,    68,   196,    69,
  375.    170,     0,    60,    63,     0,    59,    63,     0,   196,    63,
  376.      0,    58,     3,    63,     0,    63,     0,    61,    63,     0,
  377.     61,   196,    63,     0,   197,     0,   198,     0,   197,    64,
  378.    198,     0,   200,     0,   249,     0,   216,   199,   198,     0,
  379.    216,   199,    66,   250,    67,     0,    65,     0,     8,     0,
  380.      9,     0,    10,     0,    11,     0,    12,     0,    13,     0,
  381.     14,     0,    15,     0,    16,     0,    17,     0,   201,     0,
  382.    201,    74,   196,    73,   200,     0,   201,    74,    73,   200,
  383.      0,   202,     0,   201,    22,   202,     0,   203,     0,   202,
  384.     21,   203,     0,   204,     0,   203,    75,   204,     0,   205,
  385.      0,   204,    76,   205,     0,   206,     0,   205,    77,   206,
  386.      0,   208,     0,   206,   207,   208,     0,    18,     0,    19,
  387.      0,   210,     0,   208,   209,   210,     0,    78,     0,    25,
  388.      0,    79,     0,    26,     0,   212,     0,   210,   211,   212,
  389.      0,    27,     0,    28,     0,   214,     0,   212,   213,   214,
  390.      0,    80,     0,    81,     0,   216,     0,   214,   215,   216,
  391.      0,    72,     0,    82,     0,    83,     0,   217,     0,   218,
  392.      0,   219,     0,   220,     0,   221,     0,   222,     0,   223,
  393.      0,   224,     0,   225,     0,   226,     0,   227,     0,    77,
  394.    216,     0,    84,   216,     0,    68,   121,    69,   216,     0,
  395.     68,   121,    69,    66,   250,    67,     0,    68,   121,    69,
  396.     66,   253,    67,     0,    72,   216,     0,    85,   216,     0,
  397.     23,   216,     0,    24,   216,     0,    29,    68,   121,    69,
  398.      0,    29,   216,     0,    81,   216,     0,    80,   216,     0,
  399.    228,     0,   231,     0,   232,     0,   233,     0,   234,     0,
  400.    235,     0,   236,     0,   229,     0,   230,     0,   227,    86,
  401.    155,     0,   227,    20,   155,     0,   227,    68,    69,     0,
  402.    227,    68,   242,    69,     0,   110,    68,    69,     0,   110,
  403.     68,   242,    69,     0,   227,    23,     0,   227,    24,     0,
  404.    227,    70,   196,    71,     0,   110,     0,     5,     0,   237,
  405.      0,   238,     0,     6,     0,   237,     6,     0,    68,   196,
  406.     69,     0,     0,     0,    68,   239,   172,   240,    69,     0,
  407.    196,     0,   198,     0,   242,    64,   198,     0,   244,    68,
  408.    237,    69,    63,     0,   244,    68,   237,    73,   245,    69,
  409.     63,     0,   244,    68,   237,    73,   245,    73,   245,    69,
  410.     63,     0,   244,    68,   237,    73,   245,    73,   245,    73,
  411.    247,    69,    63,     0,    62,     0,    62,    36,     0,    36,
  412.     62,     0,     0,   246,     0,   245,    64,   246,     0,   237,
  413.     68,   196,    69,     0,     0,   237,     0,   247,    64,   237,
  414.      0,    62,    68,   237,    69,     0,    21,   188,     0,   251,
  415.      0,   250,    64,   251,     0,     0,   198,     0,    66,   250,
  416.     67,     0,   155,    73,   198,     0,   155,    73,    66,   250,
  417.     67,     0,    86,   155,    65,   198,     0,    86,   155,    65,
  418.     66,   250,    67,     0,   252,     0,   253,    64,   252,     0
  419. };
  420.  
  421. #endif
  422.  
  423. #if YYDEBUG != 0
  424. static const short yyrline[] = { 0,
  425.    169,   170,   174,   175,   179,   181,   183,   184,   190,   192,
  426.    198,   200,   205,   210,   211,   213,   215,   218,   219,   226,
  427.    227,   228,   231,   275,   276,   277,   278,   282,   286,   287,
  428.    291,   292,   293,   294,   301,   302,   304,   308,   311,   313,
  429.    315,   317,   319,   321,   323,   325,   332,   334,   339,   340,
  430.    342,   344,   349,   350,   354,   355,   359,   366,   368,   368,
  431.    369,   375,   379,   381,   386,   388,   390,   394,   399,   400,
  432.    405,   407,   414,   419,   420,   421,   422,   423,   424,   425,
  433.    429,   430,   431,   433,   438,   439,   441,   446,   447,   448,
  434.    449,   450,   451,   455,   459,   463,   465,   472,   473,   477,
  435.    485,   490,   498,   506,   507,   511,   512,   517,   519,   524,
  436.    528,   533,   534,   540,   541,   545,   553,   558,   566,   574,
  437.    579,   580,   586,   587,   591,   599,   604,   612,   620,   625,
  438.    626,   632,   633,   638,   641,   644,   648,   650,   652,   654,
  439.    656,   658,   663,   665,   671,   672,   676,   681,   683,   688,
  440.    692,   693,   701,   704,   708,   730,   731,   733,   734,   741,
  441.    746,   747,   752,   755,   761,   769,   772,   773,   777,   779,
  442.    785,   786,   792,   795,   801,   803,   805,   812,   813,   814,
  443.    815,   816,   817,   818,   819,   820,   821,   822,   823,   827,
  444.    828,   834,   837,   839,   842,   843,   844,   845,   849,   855,
  445.    856,   860,   864,   870,   871,   872,   876,   880,   884,   885,
  446.    886,   887,   888,   889,   890,   891,   895,   901,   902,   903,
  447.    907,   911,   915,   921,   927,   930,   934,   938,   942,   946,
  448.    947,   953,   959,   960,   967,   968,   969,   970,   973,   974,
  449.    975,   976,   977,   978,   979,   980,   981,   982,   983,   989,
  450.    990,   992,   999,  1000,  1007,  1008,  1015,  1016,  1023,  1024,
  451.   1031,  1032,  1039,  1040,  1044,  1045,  1051,  1052,  1056,  1057,
  452.   1058,  1059,  1065,  1066,  1070,  1071,  1077,  1078,  1082,  1083,
  453.   1089,  1090,  1094,  1095,  1096,  1102,  1103,  1104,  1105,  1106,
  454.   1107,  1108,  1109,  1110,  1111,  1112,  1116,  1120,  1125,  1127,
  455.   1128,  1132,  1136,  1141,  1145,  1149,  1151,  1156,  1161,  1168,
  456.   1169,  1170,  1172,  1173,  1174,  1175,  1179,  1180,  1184,  1188,
  457.   1192,  1193,  1197,  1198,  1202,  1206,  1210,  1214,  1216,  1217,
  458.   1218,  1221,  1222,  1226,  1228,  1228,  1229,  1234,  1238,  1239,
  459.   1247,  1248,  1249,  1250,  1254,  1255,  1256,  1260,  1261,  1262,
  460.   1266,  1270,  1271,  1272,  1276,  1282,  1288,  1289,  1293,  1294,
  461.   1295,  1299,  1300,  1301,  1302,  1306,  1307
  462. };
  463. #endif
  464.  
  465.  
  466. #if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  467.  
  468. static const char * const yytname[] = {   "$","error","$undefined.","IDENTIFIER",
  469. "TYPE_NAME","LITERAL","STRING_LITERAL","ELLIPSES","MUL_ASSIGN","DIV_ASSIGN",
  470. "MOD_ASSIGN","ADD_ASSIGN","SUB_ASSIGN","LEFT_ASSIGN","RIGHT_ASSIGN","AND_ASSIGN",
  471. "XOR_ASSIGN","OR_ASSIGN","EQ_OP","NE_OP","PTR_OP","AND_OP","OR_OP","DEC_OP",
  472. "INC_OP","LE_OP","GE_OP","LEFT_SHIFT","RIGHT_SHIFT","SIZEOF","TYPEDEF","EXTERN",
  473. "STATIC","AUTO","REGISTER","CONST","VOLATILE","VOID","INLINE","CHAR","SHORT",
  474. "INT","LONG","SIGNED","UNSIGNED","FLOAT","DOUBLE","STRUCT","UNION","ENUM","CASE",
  475. "DEFAULT","IF","ELSE","SWITCH","WHILE","DO","FOR","GOTO","CONTINUE","BREAK",
  476. "RETURN","ASM","';'","','","'='","'{'","'}'","'('","')'","'['","']'","'*'","':'",
  477. "'?'","'|'","'^'","'&'","'<'","'>'","'+'","'-'","'/'","'%'","'~'","'!'","'.'",
  478. "file","program","top_level_declaration","declaration_list","declaration","declaration_specifiers",
  479. "declaration_specifiers1","initialized_declarator_list","@1","initialized_declarator",
  480. "initialized_declarator1","initializer_part","initializer_list","initializer",
  481. "abstract_declarator","direct_abstract_declarator","declarator","pointer","direct_declarator",
  482. "simple_declarator","array_declarator","@2","@3","name","storage_class_specifier",
  483. "type_qualifier_list","type_qualifier","type_specifier","type_specifier1","floating_type_specifier",
  484. "integer_type_specifier","integer_type_specifier_part","typedef_name","void_type_specifier",
  485. "type_name","enumeration_type_specifier","enumeration_type_definition","@4",
  486. "@5","enumeration_definition_list","enumeration_definition_list1","enumeration_constant_definition",
  487. "enumeration_constant","enumeration_type_reference","enumeration_tag","structure_type_specifier",
  488. "structure_type_definition","@6","@7","structure_type_reference","structure_tag",
  489. "union_type_specifier","union_type_definition","@8","@9","union_type_reference",
  490. "union_tag","field_list","field_list1","component_declaration","@10","@11","@12",
  491. "component_declarator_list","component_declarator","simple_component","bit_field",
  492. "width","component_name","function_definition","@13","function_specifier","function_specifier1",
  493. "function_declarator","function_declarator0","function_direct_declarator","@14",
  494. "function_declarator1","function_declarator2","identifier_list","parameter_type_list",
  495. "parameter_list","parameter_declaration","statement","statement_list","compound_statement",
  496. "@15","@16","compound_statement_body","inner_declaration_list","conditional_statement",
  497. "if_else_statement","if_statement","iterative_statement","do_statement","for_statement",
  498. "for_expressions","while_statement","labeled_statement","case_label","default_label",
  499. "named_label","switch_statement","break_statement","continue_statement","expression_statement",
  500. "goto_statement","null_statement","return_statement","expression","comma_expression",
  501. "assignment_expression","assignment_op","conditional_expression","logical_or_expression",
  502. "logical_and_expression","bitwise_or_expression","bitwise_xor_expression","bitwise_and_expression",
  503. "equality_expression","equality_op","relational_expression","relational_op",
  504. "shift_expression","shift_op","additive_expression","add_op","multiplicative_expression",
  505. "mult_op","unary_expression","address_expression","bitwise_negation_expression",
  506. "cast_expression","indirection_expression","logical_negation_expression","predecrement_expression",
  507. "preincrement_expression","sizeof_expression","unary_minus_expression","unary_plus_expression",
  508. "postfix_expression","component_selection_expression","direct_component_selection",
  509. "indirect_component_selection","function_call","function_call_direct","postdecrement_expression",
  510. "postincrement_expression","subscript_expression","primary_expression","string_literal",
  511. "parenthesized_expression","@17","@18","constant_expression","expression_list",
  512. "asm_statement","asm_type","asm_inout_list","asm_inout","asm_clobber_list","asm_label",
  513. "named_label_address","assignment_expression_list","assignment_expression_list_item",
  514. "named_assignment","named_assignment_list", NULL
  515. };
  516. #endif
  517.  
  518. static const short yyr1[] = {     0,
  519.     87,    87,    88,    88,    89,    89,    89,    89,    90,    90,
  520.     91,    91,    92,    93,    93,    93,    93,    93,    93,    94,
  521.     95,    94,    96,    97,    97,    97,    97,    98,    99,    99,
  522.    100,   100,   100,   100,   101,   101,   101,   102,   102,   102,
  523.    102,   102,   102,   102,   102,   102,   103,   103,   104,   104,
  524.    104,   104,   105,   105,   105,   105,   106,   107,   108,   109,
  525.    107,   110,   111,   111,   111,   111,   111,   111,   112,   112,
  526.    113,   113,   114,   115,   115,   115,   115,   115,   115,   115,
  527.    116,   116,   116,   116,   117,   117,   117,   118,   118,   118,
  528.    118,   118,   118,   119,   120,   121,   121,   122,   122,   124,
  529.    123,   125,   123,   126,   126,   127,   127,   128,   128,   129,
  530.    130,   131,   131,   132,   132,   134,   133,   135,   133,   136,
  531.    137,   137,   138,   138,   140,   139,   141,   139,   142,   143,
  532.    143,   144,   144,   145,   145,   145,   147,   146,   148,   146,
  533.    149,   146,   150,   150,   151,   151,   152,   153,   153,   154,
  534.    155,   155,   157,   156,   158,   159,   159,   159,   159,   160,
  535.    161,   161,   163,   162,   164,   165,   165,   165,   166,   166,
  536.    167,   167,   168,   168,   169,   169,   169,   170,   170,   170,
  537.    170,   170,   170,   170,   170,   170,   170,   170,   170,   171,
  538.    171,   173,   174,   172,   175,   175,   175,   175,   176,   177,
  539.    177,   178,   179,   180,   180,   180,   181,   182,   183,   183,
  540.    183,   183,   183,   183,   183,   183,   184,   185,   185,   185,
  541.    186,   187,   188,   189,   190,   191,   192,   193,   194,   195,
  542.    195,   196,   197,   197,   198,   198,   198,   198,   199,   199,
  543.    199,   199,   199,   199,   199,   199,   199,   199,   199,   200,
  544.    200,   200,   201,   201,   202,   202,   203,   203,   204,   204,
  545.    205,   205,   206,   206,   207,   207,   208,   208,   209,   209,
  546.    209,   209,   210,   210,   211,   211,   212,   212,   213,   213,
  547.    214,   214,   215,   215,   215,   216,   216,   216,   216,   216,
  548.    216,   216,   216,   216,   216,   216,   217,   218,   219,   219,
  549.    219,   220,   221,   222,   223,   224,   224,   225,   226,   227,
  550.    227,   227,   227,   227,   227,   227,   228,   228,   229,   230,
  551.    231,   231,   232,   232,   233,   234,   235,   236,   236,   236,
  552.    236,   237,   237,   238,   239,   240,   238,   241,   242,   242,
  553.    243,   243,   243,   243,   244,   244,   244,   245,   245,   245,
  554.    246,   247,   247,   247,   248,   249,   250,   250,   251,   251,
  555.    251,   252,   252,   252,   252,   253,   253
  556. };
  557.  
  558. static const short yyr2[] = {     0,
  559.      0,     1,     1,     2,     1,     1,     1,     1,     1,     2,
  560.      3,     2,     1,     1,     2,     1,     2,     1,     2,     1,
  561.      0,     4,     1,     1,     2,     2,     3,     2,     1,     3,
  562.      1,     2,     3,     4,     1,     2,     1,     3,     2,     3,
  563.      3,     4,     2,     3,     3,     4,     1,     2,     1,     2,
  564.      2,     3,     1,     3,     1,     1,     1,     3,     0,     0,
  565.      6,     1,     1,     1,     1,     1,     1,     1,     1,     2,
  566.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  567.      1,     1,     2,     2,     1,     2,     2,     1,     1,     1,
  568.      1,     1,     1,     1,     1,     1,     2,     1,     1,     0,
  569.      5,     0,     6,     1,     2,     1,     3,     1,     3,     1,
  570.      2,     1,     1,     1,     1,     0,     5,     0,     6,     2,
  571.      1,     1,     1,     1,     0,     5,     0,     6,     2,     1,
  572.      1,     1,     2,     2,     2,     1,     0,     4,     0,     5,
  573.      0,     5,     1,     3,     1,     1,     1,     2,     3,     1,
  574.      1,     1,     0,     3,     1,     1,     2,     2,     3,     1,
  575.      1,     2,     0,     5,     1,     0,     1,     1,     1,     3,
  576.      1,     3,     1,     3,     2,     1,     2,     1,     1,     1,
  577.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  578.      2,     0,     0,     5,     0,     1,     1,     2,     1,     1,
  579.      1,     7,     5,     1,     1,     1,     7,     5,     2,     3,
  580.      3,     3,     4,     4,     4,     5,     5,     2,     2,     2,
  581.      2,     1,     1,     5,     2,     2,     2,     3,     1,     2,
  582.      3,     1,     1,     3,     1,     1,     3,     5,     1,     1,
  583.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  584.      5,     4,     1,     3,     1,     3,     1,     3,     1,     3,
  585.      1,     3,     1,     3,     1,     1,     1,     3,     1,     1,
  586.      1,     1,     1,     3,     1,     1,     1,     3,     1,     1,
  587.      1,     3,     1,     1,     1,     1,     1,     1,     1,     1,
  588.      1,     1,     1,     1,     1,     1,     2,     2,     4,     6,
  589.      6,     2,     2,     2,     2,     4,     2,     2,     2,     1,
  590.      1,     1,     1,     1,     1,     1,     1,     1,     3,     3,
  591.      3,     4,     3,     4,     2,     2,     4,     1,     1,     1,
  592.      1,     1,     2,     3,     0,     0,     5,     1,     1,     3,
  593.      5,     7,     9,    11,     1,     2,     2,     0,     1,     3,
  594.      4,     0,     1,     3,     4,     2,     1,     3,     0,     1,
  595.      3,     3,     5,     4,     6,     1,     3
  596. };
  597.  
  598. static const short yydefact[] = {     1,
  599.     57,    94,    67,    64,    66,    63,    65,    71,    72,    95,
  600.     68,    90,    91,    92,    93,    88,    89,    81,    82,     0,
  601.      0,     0,   345,   229,     0,    49,     2,     3,     5,     0,
  602.     13,     0,   165,    53,    55,    14,    18,    16,    73,    75,
  603.     76,    85,    78,    80,    74,    98,    99,    77,   114,   115,
  604.     79,   123,   124,     6,   153,   155,   156,   160,   161,     0,
  605.      8,     7,     0,   347,    84,    83,   121,   122,   116,   120,
  606.    130,   131,   125,   129,   112,   113,   100,   111,   346,     0,
  607.      0,    47,    56,    72,    51,    50,    69,     4,    12,     0,
  608.     20,    23,    24,     0,   157,   162,    59,    15,    19,    17,
  609.     93,    87,    86,     0,   158,     9,     0,   163,     0,     0,
  610.    118,     0,   127,     0,   102,    54,    48,    52,    70,    11,
  611.     21,     0,     0,    26,    25,   159,    58,     0,   192,   154,
  612.     10,   166,   332,     0,     0,   137,   114,   123,     0,   132,
  613.    136,     0,     0,     0,   110,     0,   104,   106,   108,     0,
  614.      0,     0,    62,   329,     0,     0,     0,     0,     0,   335,
  615.      0,     0,     0,     0,     0,     0,    28,   328,    31,   235,
  616.    250,   253,   255,   257,   259,   261,   263,   267,   273,   277,
  617.    281,   286,   287,   288,   289,   290,   291,   292,   293,   294,
  618.    295,   296,   310,   317,   318,   311,   312,   313,   314,   315,
  619.    316,   330,   331,   236,    27,   338,   232,   233,    60,   195,
  620.    169,   176,     0,   168,   167,   171,   173,   333,     0,   348,
  621.    139,   141,     0,   134,   135,   117,   133,     0,   126,     0,
  622.    101,   105,     0,     0,    22,     0,   223,   356,   304,   305,
  623.    335,   307,    32,     0,    29,    96,     0,     0,     0,   302,
  624.    297,   309,   308,   298,   303,     0,     0,     0,     0,     0,
  625.      0,     0,   265,   266,     0,   270,   272,   269,   271,     0,
  626.    275,   276,     0,   279,   280,     0,   283,   284,   285,     0,
  627.    240,   241,   242,   243,   244,   245,   246,   247,   248,   249,
  628.    239,     0,     0,   325,   326,     0,     0,     0,     0,     0,
  629.     62,     0,   222,     0,     0,     0,     0,     0,     0,     0,
  630.      0,     0,   199,   190,   197,   179,   193,   196,   180,   201,
  631.    200,   181,   204,   205,   206,   182,     0,     0,     0,   183,
  632.    184,   185,   186,   187,   188,   189,     0,   178,     0,     0,
  633.    177,    37,   175,    35,   164,     0,     0,   341,     0,     0,
  634.    349,     0,     0,     0,   147,     0,   143,   145,   146,   119,
  635.    128,   107,   109,   103,   355,     0,     0,    33,     0,    97,
  636.     35,     0,   334,   336,   323,   339,     0,   254,   281,     0,
  637.      0,   256,   258,   260,   262,   264,   268,   274,   278,   282,
  638.    359,   237,   151,   152,   320,   321,     0,     0,   319,   234,
  639.     61,   221,     0,     0,     0,     0,     0,     0,     0,   226,
  640.    225,   230,     0,   191,     0,   198,   218,   220,   219,   227,
  641.     43,     0,     0,    39,     0,     0,     0,    36,   170,   172,
  642.    174,     0,     0,     0,   348,     0,     0,   148,   150,     0,
  643.    138,     0,   306,    34,    30,   359,   299,     0,     0,   324,
  644.    252,     0,   359,   360,     0,   357,   322,   327,     0,     0,
  645.      0,     0,     0,     0,     0,   228,   231,   194,    38,    45,
  646.     41,    44,     0,    40,     0,     0,   350,   342,     0,   140,
  647.    142,   149,   144,    62,     0,     0,     0,   366,     0,   337,
  648.    340,   251,     0,   359,   238,     0,     0,     0,     0,   209,
  649.      0,     0,     0,    46,    42,   351,     0,   352,     0,     0,
  650.    300,     0,   301,   361,   358,   203,   224,   217,     0,   212,
  651.    211,   208,   210,     0,   343,   353,     0,     0,   359,   362,
  652.    367,     0,     0,   213,   214,   215,     0,     0,   359,   364,
  653.      0,   202,   207,   216,   354,   344,     0,   363,   365,     0,
  654.      0,     0
  655. };
  656.  
  657. static const short yydefgoto[] = {   550,
  658.     27,    28,   105,   106,   107,    31,    90,   151,    91,    92,
  659.    124,   244,   167,   422,   342,   355,    81,    82,    34,    35,
  660.    128,   300,   168,    36,   135,    37,    38,    39,    40,    41,
  661.     42,    43,    44,   247,    45,    46,   114,   150,   146,   147,
  662.    148,   149,    47,    78,    48,    49,   110,   142,    50,    70,
  663.     51,    52,   112,   144,    53,    74,   139,   140,   141,   223,
  664.    352,   353,   356,   357,   358,   359,   438,   486,    54,   104,
  665.     55,    56,    57,    58,    83,   132,    60,   213,   214,   423,
  666.    216,   217,   314,   315,   316,   210,   415,   317,   318,   319,
  667.    320,   321,   322,   323,   324,   464,   325,   326,   327,   328,
  668.    329,   330,   331,   332,   333,   334,   335,   336,   337,   207,
  669.    208,   292,   170,   171,   172,   173,   174,   175,   176,   265,
  670.    177,   270,   178,   273,   179,   276,   180,   280,   181,   182,
  671.    183,   184,   185,   186,   187,   188,   189,   190,   191,   192,
  672.    193,   194,   195,   196,   197,   198,   199,   200,   201,   202,
  673.    203,   249,   448,   209,   377,   338,    63,   350,   351,   527,
  674.    125,   204,   455,   456,   488,   489
  675. };
  676.  
  677. static const short yypact[] = {  1228,
  678. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    23,-32768,
  679. -32768,-32768,-32768,-32768,    69,-32768,-32768,-32768,   113,    21,
  680.     32,    60,    29,-32768,    48,    10,  1228,-32768,-32768,    76,
  681. -32768,    49,    90,-32768,-32768,  1578,  1578,  1578,-32768,-32768,
  682.    321,    40,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  683. -32768,-32768,-32768,-32768,-32768,-32768,  1578,-32768,   203,   129,
  684. -32768,-32768,   141,-32768,-32768,-32768,-32768,-32768,-32768,   114,
  685. -32768,-32768,-32768,   123,-32768,-32768,-32768,   158,-32768,   162,
  686.     49,   149,-32768,-32768,-32768,    10,-32768,-32768,-32768,    31,
  687. -32768,-32768,   104,    49,  1578,   203,   176,-32768,-32768,-32768,
  688. -32768,-32768,-32768,   186,  1578,-32768,    76,-32768,   287,  1291,
  689. -32768,  1291,-32768,   288,-32768,-32768,   149,-32768,-32768,-32768,
  690. -32768,   231,   628,-32768,   253,  1578,-32768,  1121,-32768,-32768,
  691. -32768,  1512,-32768,   122,  1291,    40,   247,   264,  1382,-32768,
  692. -32768,  1291,  1416,  1291,-32768,   263,   269,-32768,   271,   288,
  693.     48,   287,-32768,-32768,   331,  1149,  1149,  1171,   596,   478,
  694.   1149,  1149,  1149,  1149,  1149,  1149,-32768,   270,-32768,-32768,
  695.     55,   316,   272,   275,   278,   285,   196,   146,   121,   -10,
  696.    246,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  697. -32768,   183,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  698. -32768,   340,-32768,-32768,-32768,-32768,   292,-32768,-32768,   408,
  699. -32768,   144,   283,   303,-32768,   304,-32768,-32768,   306,   287,
  700. -32768,    40,   111,-32768,-32768,-32768,-32768,  1431,-32768,  1465,
  701. -32768,   288,  1121,   299,-32768,    35,-32768,-32768,-32768,-32768,
  702.    478,-32768,-32768,    17,-32768,   155,   305,   307,   186,-32768,
  703. -32768,-32768,-32768,-32768,-32768,   701,  1149,   711,  1149,  1149,
  704.   1149,  1149,-32768,-32768,  1149,-32768,-32768,-32768,-32768,  1149,
  705. -32768,-32768,  1149,-32768,-32768,  1149,-32768,-32768,-32768,  1149,
  706. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  707. -32768,   733,   302,-32768,-32768,   743,  1121,   302,  1121,   300,
  708.    308,  1121,-32768,   309,   310,   314,   528,   317,   372,   323,
  709.    324,   816,  1578,-32768,   528,-32768,-32768,   528,-32768,-32768,
  710. -32768,-32768,-32768,-32768,-32768,-32768,   311,   315,   318,-32768,
  711. -32768,-32768,-32768,-32768,-32768,-32768,   327,-32768,  1275,   827,
  712. -32768,   180,-32768,    66,-32768,   389,  1532,-32768,    28,   112,
  713. -32768,   111,   111,  1121,   320,   245,-32768,-32768,-32768,-32768,
  714. -32768,-32768,-32768,-32768,-32768,   325,   618,-32768,  1321,-32768,
  715.    230,  1081,-32768,-32768,-32768,-32768,    -3,   316,-32768,  1149,
  716.    322,   272,   275,   278,   285,   196,   146,   121,   -10,-32768,
  717.    849,-32768,-32768,-32768,-32768,-32768,    14,   326,-32768,-32768,
  718. -32768,-32768,  1121,  1121,  1121,    23,   341,   917,   335,-32768,
  719. -32768,-32768,   337,-32768,   338,   528,-32768,-32768,-32768,-32768,
  720. -32768,   333,   346,-32768,   339,  1367,   939,   180,-32768,-32768,
  721. -32768,  1121,   287,   343,   287,   250,   252,-32768,-32768,  1121,
  722. -32768,   111,  1081,-32768,-32768,   273,-32768,   348,  1121,-32768,
  723. -32768,  1149,   849,-32768,   103,-32768,-32768,-32768,   350,   351,
  724.    352,   336,   949,   353,   360,-32768,-32768,-32768,-32768,-32768,
  725. -32768,-32768,   355,-32768,   354,   357,-32768,-32768,   166,-32768,
  726. -32768,-32768,-32768,   361,   302,   362,   165,-32768,   174,-32768,
  727. -32768,-32768,   222,   849,-32768,   528,   528,   528,  1121,  1121,
  728.    367,   528,   985,-32768,-32768,-32768,   370,   287,   344,  1022,
  729. -32768,    19,-32768,-32768,-32768,   383,-32768,-32768,   392,-32768,
  730.   1121,-32768,  1121,   409,-32768,   340,    81,  1053,   849,-32768,
  731. -32768,   528,   410,-32768,-32768,  1121,   287,   412,   849,-32768,
  732.    223,-32768,-32768,-32768,   340,-32768,   228,-32768,-32768,   477,
  733.    479,-32768
  734. };
  735.  
  736. static const short yypgoto[] = {-32768,
  737. -32768,   451,   -79,     4,     1,   244,-32768,-32768,   345,-32768,
  738.    365,-32768,  -149,  -186,  -297,   -19,     3,     5,-32768,-32768,
  739. -32768,-32768,-32768,-32768,   -11,   101,   -42,-32768,-32768,-32768,
  740.    445,-32768,-32768,   254,-32768,-32768,-32768,-32768,   347,-32768,
  741.    255,-32768,-32768,-32768,-32768,   -20,-32768,-32768,-32768,-32768,
  742. -32768,    -2,-32768,-32768,-32768,-32768,    52,   -72,-32768,-32768,
  743. -32768,-32768,   -31,    56,-32768,-32768,    51,  -280,-32768,-32768,
  744. -32768,-32768,   464,-32768,    12,-32768,-32768,-32768,-32768,  -125,
  745. -32768,   153,  -298,   185,   -90,-32768,-32768,-32768,-32768,-32768,
  746. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  747.    349,-32768,-32768,-32768,-32768,-32768,    80,-32768,  -120,-32768,
  748.   -121,-32768,  -361,-32768,   248,   276,   268,   277,   267,-32768,
  749.    241,-32768,   260,-32768,   259,-32768,   261,-32768,  -108,-32768,
  750. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  751. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,  -109,
  752. -32768,-32768,-32768,  -281,   240,   163,-32768,   105,   106,-32768,
  753. -32768,-32768,  -426,    47,    30,-32768
  754. };
  755.  
  756.  
  757. #define    YYLAST        1627
  758.  
  759.  
  760. static const short yytable[] = {   134,
  761.     30,   169,    32,    29,    33,    80,   215,   206,   407,   245,
  762.     93,    59,   395,   130,    86,   126,   414,   399,   451,   487,
  763.    402,   393,   394,    67,    68,   341,   493,    30,    85,    32,
  764.     29,    33,    94,   218,    71,    72,    33,   169,    59,   248,
  765.    218,    59,   236,    96,     8,    84,   428,   239,   240,   242,
  766.      1,     1,   250,   251,   252,   253,   254,   255,   425,   370,
  767.    449,   277,    75,    76,    79,   450,   227,   136,     1,   136,
  768.    227,   278,   279,   428,     8,    84,   257,   449,     1,    61,
  769.    367,    26,   457,   368,    64,   117,    69,    93,   118,   137,
  770.    492,   137,   221,   120,   121,   432,   136,    73,   117,   136,
  771.    136,   136,   541,   365,   485,    96,    61,   138,   131,   138,
  772.    349,   363,   547,     1,    65,    25,    25,   414,   137,    26,
  773.    248,   137,   137,   137,   222,    77,    87,   218,   258,   131,
  774.    313,    93,   212,   339,   376,   340,   138,   381,    89,   138,
  775.    138,   138,   103,    25,   537,   475,     1,    26,   379,   538,
  776.    379,   379,   379,   379,    66,   227,   379,   227,   374,    97,
  777.    246,   379,    62,   143,   379,   122,   494,   379,   123,   495,
  778.    392,   390,   271,   272,   376,   433,   398,   400,    25,   111,
  779.    434,   206,    26,   354,   435,   136,   119,   136,   113,    62,
  780.    219,   413,   343,   228,   220,   230,   108,   516,   517,   518,
  781.    274,   275,   293,   522,   509,   294,   295,   137,   109,   137,
  782.     87,   339,    87,   340,   344,    26,  -165,   445,    97,   206,
  783.    266,   267,   369,   115,   340,   138,    26,   138,   494,   433,
  784.    116,   511,   439,   542,   507,   119,    87,   512,   508,    87,
  785.    513,   246,    87,    87,    87,   169,   127,   426,   371,   427,
  786.    296,   129,   297,   281,   282,   283,   284,   285,   286,   287,
  787.    288,   289,   290,   447,   -56,   -56,   -56,   -56,   298,   454,
  788.    -56,   379,   -56,   268,   269,   484,   394,   154,   133,    98,
  789.     99,   100,   459,   460,   461,   494,   494,   465,   514,   548,
  790.    145,   494,   133,   155,   549,   156,   157,   369,   152,   340,
  791.    473,   158,   263,   264,   393,   394,   206,   441,   442,   224,
  792.    291,   476,   480,   442,   481,   442,   131,   123,   439,    80,
  793.    436,   437,   119,   349,   454,   349,   225,   491,    87,   231,
  794.     87,   454,   232,   237,   447,   233,   259,   256,   453,   212,
  795.    160,   344,   501,   379,   161,   218,   260,   212,   117,   162,
  796.    261,   345,   163,   164,   262,   299,   165,   166,   485,    12,
  797.     13,    14,   101,    16,    17,   364,   346,   347,   348,   212,
  798.    401,   371,   454,   372,   409,   373,   403,   404,   519,   520,
  799.   -223,   405,   524,   417,   408,   410,   411,   418,   530,   420,
  800.    419,   429,   440,   443,   452,   462,   458,   466,   526,   467,
  801.    534,   469,   535,   499,   468,   478,   540,   454,   528,   471,
  802.    301,     2,   154,   133,   470,   544,   490,   454,   496,   497,
  803.    498,   502,   503,   504,   505,   506,   212,   545,   155,   521,
  804.    156,   157,   525,  -151,   510,   532,   158,     3,     4,     5,
  805.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  806.     16,    17,    18,    19,    20,    21,    22,   302,   303,   304,
  807.    533,   305,   306,   307,   308,   309,   310,   311,   312,    23,
  808.     24,   536,   543,   129,   546,   160,   551,    88,   552,   161,
  809.    153,     2,   154,   133,   162,   102,   362,   163,   164,   205,
  810.    482,   165,   166,    95,   366,   235,   234,   483,   155,   431,
  811.    156,   157,   416,   238,   378,   386,   158,     3,     4,     5,
  812.      6,     7,     8,    84,    10,    11,    12,    13,    14,    15,
  813.     16,    17,    18,    19,    20,    21,    22,   383,   385,   387,
  814.    301,   388,   154,   133,   382,   397,   389,   384,   477,   479,
  815.    515,   531,     0,     0,     0,   160,     0,     0,   155,   161,
  816.    156,   157,     0,     0,   162,     0,   158,   163,   164,     0,
  817.      0,   165,   166,   406,     0,     0,     0,     0,     0,     0,
  818.      0,     0,     0,     0,     0,     0,     0,   302,   303,   304,
  819.      0,   305,   306,   307,   308,   309,   310,   311,   312,    23,
  820.     24,     0,     0,   129,     0,   160,     0,     0,   153,   161,
  821.    154,   133,     0,     0,   162,     0,     0,   163,   164,     0,
  822.      0,   165,   166,     0,     0,     0,   155,     0,   156,   157,
  823.    153,     0,   154,   133,   158,     0,     0,     0,     0,     0,
  824.    153,     0,   154,   133,     0,     0,     0,     0,   155,     0,
  825.    156,   157,     0,     0,     0,     0,   158,     0,   155,     0,
  826.    156,   157,     0,     0,     0,     0,   158,     0,     0,     0,
  827.      0,   159,   243,   160,     0,     0,     0,   161,     0,     0,
  828.      0,     0,   162,     0,     0,   163,   164,     0,     0,   165,
  829.    166,     0,     0,   159,   444,   160,     0,     0,     0,   161,
  830.      0,     0,     0,   159,   162,   160,     0,   163,   164,   161,
  831.      0,   165,   166,   153,   162,   154,   133,   163,   164,     0,
  832.      0,   165,   166,   153,     0,   154,   133,     0,     0,     0,
  833.      0,   155,     0,   156,   157,     0,     0,     0,     0,   158,
  834.      0,   155,     0,   156,   157,   153,     0,   154,   133,   158,
  835.      0,     0,     0,     0,     0,   153,     0,   154,   133,     0,
  836.      0,     0,     0,   155,     0,   156,   157,     0,     0,     0,
  837.      0,   158,     0,   155,     0,   156,   157,     0,   160,   375,
  838.      0,   158,   161,     0,     0,     0,     0,   162,   160,     0,
  839.    163,   164,   161,   380,   165,   166,     0,   162,     0,     0,
  840.    163,   164,     0,     0,   165,   166,     0,     0,   391,     0,
  841.    160,     0,     0,     0,   161,     0,     0,     0,     0,   162,
  842.    160,   396,   163,   164,   161,     0,   165,   166,   153,   162,
  843.    154,   133,   163,   164,     0,     0,   165,   166,     0,   153,
  844.      0,   154,   133,     0,     0,     0,   155,     0,   156,   157,
  845.      0,     0,     0,     0,   158,     0,     0,   155,     0,   156,
  846.    157,   153,     0,   154,   133,   158,     0,     0,     0,     0,
  847.      0,     0,     0,     0,     0,     0,     0,     0,     0,   155,
  848.      0,   156,   157,     0,     0,     0,     0,   158,   412,     0,
  849.      0,     0,     0,   160,     0,     0,     0,   161,     0,     0,
  850.      0,     0,   162,     0,   160,   163,   164,   424,   161,   165,
  851.    166,     0,     0,   162,     0,     0,   163,   164,     0,     0,
  852.    165,   166,     0,     0,   453,     0,   160,     0,     0,   153,
  853.    161,   154,   133,     0,     0,   162,     0,     0,   163,   164,
  854.      0,     0,   165,   166,     0,     0,     0,   155,     0,   156,
  855.    157,   153,     0,   154,   133,   158,     0,     0,     0,     0,
  856.      0,   153,     0,   154,   133,     0,     0,     0,     0,   155,
  857.      0,   156,   157,     0,     0,     0,     0,   158,     0,   155,
  858.      0,   156,   157,     0,     0,     0,     0,   158,     0,   463,
  859.      0,     0,     0,     0,   160,     0,     0,   153,   161,   154,
  860.    133,     0,     0,   162,     0,     0,   163,   164,     0,     0,
  861.    165,   166,     0,     0,     0,   155,   160,   156,   157,   474,
  862.    161,   500,     0,   158,     0,   162,   160,     0,   163,   164,
  863.    161,     0,   165,   166,   153,   162,   154,   133,   163,   164,
  864.      0,     0,   165,   166,     0,     0,     0,     0,     0,     0,
  865.      0,     0,   155,     0,   156,   157,     0,   523,     0,     0,
  866.    158,     0,   160,     0,     0,   153,   161,   154,   133,     0,
  867.      0,   162,     0,     0,   163,   164,     0,     0,   165,   166,
  868.      0,     0,     0,   155,     0,   156,   157,     0,     0,     0,
  869.      0,   158,     0,   153,     0,   154,   133,   529,     0,   160,
  870.      0,     0,     0,   161,     0,     0,     0,     0,   162,     0,
  871.      0,   163,   164,   156,   157,   165,   166,     0,     0,   158,
  872.      0,     0,     0,     0,     0,     0,     0,     0,   539,     0,
  873.    160,     0,     0,   153,   161,   154,   133,     0,     0,   162,
  874.      0,     0,   163,   164,     0,     0,   165,   166,     0,     0,
  875.      0,   155,     0,   156,   157,     0,   446,     0,   160,   158,
  876.      0,   153,   161,   154,   133,     0,     0,   162,     0,     0,
  877.    163,   164,     0,     0,   165,   166,     0,     0,     0,     0,
  878.      0,   156,   157,   153,     0,   154,   133,   158,     0,     0,
  879.      0,     0,     0,     0,     0,     0,     0,     0,   160,     0,
  880.      0,     0,   161,   156,   157,     0,     0,   162,     0,   158,
  881.    163,   164,     0,     0,   165,   166,     0,     0,     0,     0,
  882.      0,     0,     0,     0,     0,     0,   160,     0,     0,     0,
  883.    161,     0,     0,     0,     0,   162,     0,     0,   163,   164,
  884.      1,     2,   165,   166,     0,     0,     0,     0,   241,     0,
  885.      0,     0,   161,     0,     0,     0,     0,   162,     0,     0,
  886.    163,   164,     0,     0,   165,   166,     0,     3,     4,     5,
  887.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  888.     16,    17,    18,    19,    20,    21,    22,     1,     2,     0,
  889.      0,     0,     0,     0,     0,     0,     0,     0,     0,    23,
  890.     24,     0,     0,     0,     2,    25,     0,     0,     0,    26,
  891.      0,     0,     0,     0,     3,     4,     5,     6,     7,     8,
  892.     84,    10,    11,    12,    13,    14,    15,    16,    17,    18,
  893.     19,    20,    21,    22,     2,     8,    84,    10,     0,    12,
  894.     13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
  895.      0,     0,   339,   421,   340,     0,    26,     0,     0,     0,
  896.      3,     4,     5,     6,     7,     8,    84,    10,    11,    12,
  897.     13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
  898.      2,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  899.      0,     0,     0,     0,     0,     2,     0,     0,   369,   421,
  900.    340,     0,    26,     0,     0,     0,     3,     4,     5,     6,
  901.      7,     8,    84,    10,    11,    12,    13,    14,    15,    16,
  902.     17,    18,    19,    20,    21,    22,     8,    84,    10,     2,
  903.     12,    13,    14,    15,    16,    17,    18,    19,    20,    21,
  904.     22,     0,     0,     0,     2,   472,     0,     0,     0,     0,
  905.      0,     0,     0,     0,     0,     0,     0,     0,   226,     0,
  906.      8,    84,    10,     0,    12,    13,    14,    15,    16,    17,
  907.     18,    19,    20,    21,    22,     8,    84,    10,     2,    12,
  908.     13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
  909.      0,     0,   229,     0,     0,     0,     0,     0,     0,     0,
  910.      0,     0,     0,     0,     0,     0,     0,   360,     0,     8,
  911.     84,    10,     0,    12,    13,    14,    15,    16,    17,    18,
  912.     19,    20,    21,    22,   211,     2,     0,     0,     0,     0,
  913.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  914.      0,   361,     0,     0,     0,     2,     0,     0,   430,     0,
  915.      0,     3,     4,     5,     6,     7,     8,    84,    10,    11,
  916.     12,    13,    14,    15,    16,    17,    18,    19,    20,    21,
  917.     22,     3,     4,     5,     6,     7,     8,    84,    10,    11,
  918.     12,    13,    14,    15,    16,    17,    18,    19,    20,    21,
  919.     22,     2,     0,     0,     0,     0,     0,     0,     0,     0,
  920.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  921.      0,     0,     0,     0,     0,     0,     0,     3,     4,     5,
  922.      6,     7,     8,    84,    10,    11,    12,    13,    14,    15,
  923.     16,    17,    18,    19,    20,    21,    22
  924. };
  925.  
  926. static const short yycheck[] = {   109,
  927.      0,   123,     0,     0,     0,    25,   132,   128,   307,   159,
  928.     30,     0,   293,   104,    26,    95,   315,   298,   380,   446,
  929.    302,     3,     4,     3,     4,   212,   453,    27,    26,    27,
  930.     27,    27,    30,     6,     3,     4,    32,   159,    27,   160,
  931.      6,    30,   152,    32,    35,    36,   344,   156,   157,   158,
  932.      3,     3,   161,   162,   163,   164,   165,   166,   340,   246,
  933.     64,    72,     3,     4,    36,    69,   139,   110,     3,   112,
  934.    143,    82,    83,   371,    35,    36,    22,    64,     3,     0,
  935.     64,    72,    69,    67,    62,    81,    66,   107,    86,   110,
  936.    452,   112,   135,    63,    64,    68,   139,    66,    94,   142,
  937.    143,   144,   529,    69,    86,    94,    27,   110,   105,   112,
  938.    220,   233,   539,     3,    46,    68,    68,   416,   139,    72,
  939.    241,   142,   143,   144,   136,    66,    26,     6,    74,   126,
  940.    210,   151,   132,    68,   256,    70,   139,   258,    63,   142,
  941.    143,   144,    42,    68,    64,   427,     3,    72,   257,    69,
  942.    259,   260,   261,   262,    42,   228,   265,   230,   249,    70,
  943.    160,   270,     0,   112,   273,    62,    64,   276,    65,    67,
  944.    292,   280,    27,    28,   296,    64,   297,   299,    68,    66,
  945.     69,   302,    72,    73,    73,   228,    86,   230,    66,    27,
  946.     69,   312,   212,   142,    73,   144,    68,   496,   497,   498,
  947.     80,    81,    20,   502,   485,    23,    24,   228,    68,   230,
  948.    110,    68,   112,    70,   212,    72,    68,   367,    70,   340,
  949.     25,    26,    68,    66,    70,   228,    72,   230,    64,    64,
  950.     69,    67,   354,   532,    69,   135,   136,    64,    73,   139,
  951.     67,   241,   142,   143,   144,   367,    71,    68,   246,    70,
  952.     68,    66,    70,     8,     9,    10,    11,    12,    13,    14,
  953.     15,    16,    17,   372,    62,    63,    64,    65,    86,   391,
  954.     68,   380,    70,    78,    79,     3,     4,     5,     6,    36,
  955.     37,    38,   403,   404,   405,    64,    64,   408,    67,    67,
  956.      3,    64,     6,    21,    67,    23,    24,    68,    68,    70,
  957.    426,    29,    18,    19,     3,     4,   427,    63,    64,    63,
  958.     65,   432,    63,    64,    63,    64,   313,    65,   440,   339,
  959.    352,   353,   222,   433,   446,   435,    63,   449,   228,    67,
  960.    230,   453,    64,     3,   443,    65,    21,    68,    66,   339,
  961.     68,   339,   463,   452,    72,     6,    75,   347,   344,    77,
  962.     76,    69,    80,    81,    77,    64,    84,    85,    86,    39,
  963.     40,    41,    42,    43,    44,    67,    64,    64,    63,   369,
  964.     71,   369,   494,    69,     3,    69,    68,    68,   499,   500,
  965.     73,    68,   503,    73,    68,    63,    63,    73,   510,    63,
  966.     73,     3,    73,    69,    73,    55,    71,    63,   508,    63,
  967.    521,    69,   523,    68,    67,    63,   528,   529,    65,    71,
  968.      3,     4,     5,     6,    69,   536,    69,   539,    69,    69,
  969.     69,    69,    63,    69,    71,    69,   426,   537,    21,    63,
  970.     23,    24,    63,    73,    73,    53,    29,    30,    31,    32,
  971.     33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
  972.     43,    44,    45,    46,    47,    48,    49,    50,    51,    52,
  973.     69,    54,    55,    56,    57,    58,    59,    60,    61,    62,
  974.     63,    63,    63,    66,    63,    68,     0,    27,     0,    72,
  975.      3,     4,     5,     6,    77,    41,   232,    80,    81,   125,
  976.    440,    84,    85,    30,   241,   151,   150,   442,    21,   347,
  977.     23,    24,   318,   155,   257,   265,    29,    30,    31,    32,
  978.     33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
  979.     43,    44,    45,    46,    47,    48,    49,   260,   262,   270,
  980.      3,   273,     5,     6,   259,   296,   276,   261,   433,   435,
  981.    494,   512,    -1,    -1,    -1,    68,    -1,    -1,    21,    72,
  982.     23,    24,    -1,    -1,    77,    -1,    29,    80,    81,    -1,
  983.     -1,    84,    85,    36,    -1,    -1,    -1,    -1,    -1,    -1,
  984.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    50,    51,    52,
  985.     -1,    54,    55,    56,    57,    58,    59,    60,    61,    62,
  986.     63,    -1,    -1,    66,    -1,    68,    -1,    -1,     3,    72,
  987.      5,     6,    -1,    -1,    77,    -1,    -1,    80,    81,    -1,
  988.     -1,    84,    85,    -1,    -1,    -1,    21,    -1,    23,    24,
  989.      3,    -1,     5,     6,    29,    -1,    -1,    -1,    -1,    -1,
  990.      3,    -1,     5,     6,    -1,    -1,    -1,    -1,    21,    -1,
  991.     23,    24,    -1,    -1,    -1,    -1,    29,    -1,    21,    -1,
  992.     23,    24,    -1,    -1,    -1,    -1,    29,    -1,    -1,    -1,
  993.     -1,    66,    67,    68,    -1,    -1,    -1,    72,    -1,    -1,
  994.     -1,    -1,    77,    -1,    -1,    80,    81,    -1,    -1,    84,
  995.     85,    -1,    -1,    66,    67,    68,    -1,    -1,    -1,    72,
  996.     -1,    -1,    -1,    66,    77,    68,    -1,    80,    81,    72,
  997.     -1,    84,    85,     3,    77,     5,     6,    80,    81,    -1,
  998.     -1,    84,    85,     3,    -1,     5,     6,    -1,    -1,    -1,
  999.     -1,    21,    -1,    23,    24,    -1,    -1,    -1,    -1,    29,
  1000.     -1,    21,    -1,    23,    24,     3,    -1,     5,     6,    29,
  1001.     -1,    -1,    -1,    -1,    -1,     3,    -1,     5,     6,    -1,
  1002.     -1,    -1,    -1,    21,    -1,    23,    24,    -1,    -1,    -1,
  1003.     -1,    29,    -1,    21,    -1,    23,    24,    -1,    68,    69,
  1004.     -1,    29,    72,    -1,    -1,    -1,    -1,    77,    68,    -1,
  1005.     80,    81,    72,    73,    84,    85,    -1,    77,    -1,    -1,
  1006.     80,    81,    -1,    -1,    84,    85,    -1,    -1,    66,    -1,
  1007.     68,    -1,    -1,    -1,    72,    -1,    -1,    -1,    -1,    77,
  1008.     68,    69,    80,    81,    72,    -1,    84,    85,     3,    77,
  1009.      5,     6,    80,    81,    -1,    -1,    84,    85,    -1,     3,
  1010.     -1,     5,     6,    -1,    -1,    -1,    21,    -1,    23,    24,
  1011.     -1,    -1,    -1,    -1,    29,    -1,    -1,    21,    -1,    23,
  1012.     24,     3,    -1,     5,     6,    29,    -1,    -1,    -1,    -1,
  1013.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    21,
  1014.     -1,    23,    24,    -1,    -1,    -1,    -1,    29,    63,    -1,
  1015.     -1,    -1,    -1,    68,    -1,    -1,    -1,    72,    -1,    -1,
  1016.     -1,    -1,    77,    -1,    68,    80,    81,    71,    72,    84,
  1017.     85,    -1,    -1,    77,    -1,    -1,    80,    81,    -1,    -1,
  1018.     84,    85,    -1,    -1,    66,    -1,    68,    -1,    -1,     3,
  1019.     72,     5,     6,    -1,    -1,    77,    -1,    -1,    80,    81,
  1020.     -1,    -1,    84,    85,    -1,    -1,    -1,    21,    -1,    23,
  1021.     24,     3,    -1,     5,     6,    29,    -1,    -1,    -1,    -1,
  1022.     -1,     3,    -1,     5,     6,    -1,    -1,    -1,    -1,    21,
  1023.     -1,    23,    24,    -1,    -1,    -1,    -1,    29,    -1,    21,
  1024.     -1,    23,    24,    -1,    -1,    -1,    -1,    29,    -1,    63,
  1025.     -1,    -1,    -1,    -1,    68,    -1,    -1,     3,    72,     5,
  1026.      6,    -1,    -1,    77,    -1,    -1,    80,    81,    -1,    -1,
  1027.     84,    85,    -1,    -1,    -1,    21,    68,    23,    24,    71,
  1028.     72,    63,    -1,    29,    -1,    77,    68,    -1,    80,    81,
  1029.     72,    -1,    84,    85,     3,    77,     5,     6,    80,    81,
  1030.     -1,    -1,    84,    85,    -1,    -1,    -1,    -1,    -1,    -1,
  1031.     -1,    -1,    21,    -1,    23,    24,    -1,    63,    -1,    -1,
  1032.     29,    -1,    68,    -1,    -1,     3,    72,     5,     6,    -1,
  1033.     -1,    77,    -1,    -1,    80,    81,    -1,    -1,    84,    85,
  1034.     -1,    -1,    -1,    21,    -1,    23,    24,    -1,    -1,    -1,
  1035.     -1,    29,    -1,     3,    -1,     5,     6,    66,    -1,    68,
  1036.     -1,    -1,    -1,    72,    -1,    -1,    -1,    -1,    77,    -1,
  1037.     -1,    80,    81,    23,    24,    84,    85,    -1,    -1,    29,
  1038.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    66,    -1,
  1039.     68,    -1,    -1,     3,    72,     5,     6,    -1,    -1,    77,
  1040.     -1,    -1,    80,    81,    -1,    -1,    84,    85,    -1,    -1,
  1041.     -1,    21,    -1,    23,    24,    -1,    66,    -1,    68,    29,
  1042.     -1,     3,    72,     5,     6,    -1,    -1,    77,    -1,    -1,
  1043.     80,    81,    -1,    -1,    84,    85,    -1,    -1,    -1,    -1,
  1044.     -1,    23,    24,     3,    -1,     5,     6,    29,    -1,    -1,
  1045.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    68,    -1,
  1046.     -1,    -1,    72,    23,    24,    -1,    -1,    77,    -1,    29,
  1047.     80,    81,    -1,    -1,    84,    85,    -1,    -1,    -1,    -1,
  1048.     -1,    -1,    -1,    -1,    -1,    -1,    68,    -1,    -1,    -1,
  1049.     72,    -1,    -1,    -1,    -1,    77,    -1,    -1,    80,    81,
  1050.      3,     4,    84,    85,    -1,    -1,    -1,    -1,    68,    -1,
  1051.     -1,    -1,    72,    -1,    -1,    -1,    -1,    77,    -1,    -1,
  1052.     80,    81,    -1,    -1,    84,    85,    -1,    30,    31,    32,
  1053.     33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
  1054.     43,    44,    45,    46,    47,    48,    49,     3,     4,    -1,
  1055.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    62,
  1056.     63,    -1,    -1,    -1,     4,    68,    -1,    -1,    -1,    72,
  1057.     -1,    -1,    -1,    -1,    30,    31,    32,    33,    34,    35,
  1058.     36,    37,    38,    39,    40,    41,    42,    43,    44,    45,
  1059.     46,    47,    48,    49,     4,    35,    36,    37,    -1,    39,
  1060.     40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
  1061.     -1,    -1,    68,    69,    70,    -1,    72,    -1,    -1,    -1,
  1062.     30,    31,    32,    33,    34,    35,    36,    37,    38,    39,
  1063.     40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
  1064.      4,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  1065.     -1,    -1,    -1,    -1,    -1,     4,    -1,    -1,    68,    69,
  1066.     70,    -1,    72,    -1,    -1,    -1,    30,    31,    32,    33,
  1067.     34,    35,    36,    37,    38,    39,    40,    41,    42,    43,
  1068.     44,    45,    46,    47,    48,    49,    35,    36,    37,     4,
  1069.     39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
  1070.     49,    -1,    -1,    -1,     4,    69,    -1,    -1,    -1,    -1,
  1071.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    67,    -1,
  1072.     35,    36,    37,    -1,    39,    40,    41,    42,    43,    44,
  1073.     45,    46,    47,    48,    49,    35,    36,    37,     4,    39,
  1074.     40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
  1075.     -1,    -1,    67,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  1076.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    67,    -1,    35,
  1077.     36,    37,    -1,    39,    40,    41,    42,    43,    44,    45,
  1078.     46,    47,    48,    49,     3,     4,    -1,    -1,    -1,    -1,
  1079.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  1080.     -1,    67,    -1,    -1,    -1,     4,    -1,    -1,     7,    -1,
  1081.     -1,    30,    31,    32,    33,    34,    35,    36,    37,    38,
  1082.     39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
  1083.     49,    30,    31,    32,    33,    34,    35,    36,    37,    38,
  1084.     39,    40,    41,    42,    43,    44,    45,    46,    47,    48,
  1085.     49,     4,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  1086.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  1087.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    30,    31,    32,
  1088.     33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
  1089.     43,    44,    45,    46,    47,    48,    49
  1090. };
  1091. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  1092.  
  1093.  
  1094. /* Skeleton output parser for bison,
  1095.    Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  1096.  
  1097.    This program is free software; you can redistribute it and/or modify
  1098.    it under the terms of the GNU General Public License as published by
  1099.    the Free Software Foundation; either version 2, or (at your option)
  1100.    any later version.
  1101.  
  1102.    This program is distributed in the hope that it will be useful,
  1103.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1104.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1105.    GNU General Public License for more details.
  1106.  
  1107.    You should have received a copy of the GNU General Public License
  1108.    along with this program; if not, write to the Free Software
  1109.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  1110.  
  1111. /* As a special exception, when this file is copied by Bison into a
  1112.    Bison output file, you may use that output file without restriction.
  1113.    This special exception was added by the Free Software Foundation
  1114.    in version 1.24 of Bison.  */
  1115.  
  1116. #ifndef alloca
  1117. #ifdef __GNUC__
  1118. #define alloca __builtin_alloca
  1119. #else /* not GNU C.  */
  1120. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  1121. #include <alloca.h>
  1122. #else /* not sparc */
  1123. #if defined (MSDOS) && !defined (__TURBOC__)
  1124. #include <malloc.h>
  1125. #else /* not MSDOS, or __TURBOC__ */
  1126. #if defined(_AIX)
  1127. #include <malloc.h>
  1128.  #pragma alloca
  1129. #else /* not MSDOS, __TURBOC__, or _AIX */
  1130. #ifdef __hpux
  1131. #ifdef __cplusplus
  1132. extern "C" {
  1133. void *alloca (unsigned int);
  1134. };
  1135. #else /* not __cplusplus */
  1136. void *alloca ();
  1137. #endif /* not __cplusplus */
  1138. #endif /* __hpux */
  1139. #endif /* not _AIX */
  1140. #endif /* not MSDOS, or __TURBOC__ */
  1141. #endif /* not sparc.  */
  1142. #endif /* not GNU C.  */
  1143. #endif /* alloca not defined.  */
  1144.  
  1145. /* This is the parser code that is written into each bison parser
  1146.   when the %semantic_parser declaration is not specified in the grammar.
  1147.   It was written by Richard Stallman by simplifying the hairy parser
  1148.   used when %semantic_parser is specified.  */
  1149.  
  1150. /* Note: there must be only one dollar sign in this file.
  1151.    It is replaced by the list of actions, each action
  1152.    as one case of the switch.  */
  1153.  
  1154. #define yyerrok        (yyerrstatus = 0)
  1155. #define yyclearin    (yychar = YYEMPTY)
  1156. #define YYEMPTY        -2
  1157. #define YYEOF        0
  1158. #define YYACCEPT    return(0)
  1159. #define YYABORT     return(1)
  1160. #define YYERROR        goto yyerrlab1
  1161. /* Like YYERROR except do call yyerror.
  1162.    This remains here temporarily to ease the
  1163.    transition to the new meaning of YYERROR, for GCC.
  1164.    Once GCC version 2 has supplanted version 1, this can go.  */
  1165. #define YYFAIL        goto yyerrlab
  1166. #define YYRECOVERING()  (!!yyerrstatus)
  1167. #define YYBACKUP(token, value) \
  1168. do                                \
  1169.   if (yychar == YYEMPTY && yylen == 1)                \
  1170.     { yychar = (token), yylval = (value);            \
  1171.       yychar1 = YYTRANSLATE (yychar);                \
  1172.       YYPOPSTACK;                        \
  1173.       goto yybackup;                        \
  1174.     }                                \
  1175.   else                                \
  1176.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  1177. while (0)
  1178.  
  1179. #define YYTERROR    1
  1180. #define YYERRCODE    256
  1181.  
  1182. #ifndef YYPURE
  1183. #define YYLEX        yylex()
  1184. #endif
  1185.  
  1186. #ifdef YYPURE
  1187. #ifdef YYLSP_NEEDED
  1188. #ifdef YYLEX_PARAM
  1189. #define YYLEX        yylex(&yylval, &yylloc, YYLEX_PARAM)
  1190. #else
  1191. #define YYLEX        yylex(&yylval, &yylloc)
  1192. #endif
  1193. #else /* not YYLSP_NEEDED */
  1194. #ifdef YYLEX_PARAM
  1195. #define YYLEX        yylex(&yylval, YYLEX_PARAM)
  1196. #else
  1197. #define YYLEX        yylex(&yylval)
  1198. #endif
  1199. #endif /* not YYLSP_NEEDED */
  1200. #endif
  1201.  
  1202. /* If nonreentrant, generate the variables here */
  1203.  
  1204. #ifndef YYPURE
  1205.  
  1206. int    yychar;            /*  the lookahead symbol        */
  1207. YYSTYPE    yylval;            /*  the semantic value of the        */
  1208.                 /*  lookahead symbol            */
  1209.  
  1210. #ifdef YYLSP_NEEDED
  1211. YYLTYPE yylloc;            /*  location data for the lookahead    */
  1212.                 /*  symbol                */
  1213. #endif
  1214.  
  1215. int yynerrs;            /*  number of parse errors so far       */
  1216. #endif  /* not YYPURE */
  1217.  
  1218. #if YYDEBUG != 0
  1219. int yydebug;            /*  nonzero means print parse trace    */
  1220. /* Since this is uninitialized, it does not stop multiple parsers
  1221.    from coexisting.  */
  1222. #endif
  1223.  
  1224. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  1225.  
  1226. #ifndef    YYINITDEPTH
  1227. #define YYINITDEPTH 200
  1228. #endif
  1229.  
  1230. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  1231.     (effective only if the built-in stack extension method is used).  */
  1232.  
  1233. #if YYMAXDEPTH == 0
  1234. #undef YYMAXDEPTH
  1235. #endif
  1236.  
  1237. #ifndef YYMAXDEPTH
  1238. #define YYMAXDEPTH 10000
  1239. #endif
  1240.  
  1241. /* Prevent warning if -Wstrict-prototypes.  */
  1242. #ifdef __GNUC__
  1243. int yyparse (void);
  1244. #endif
  1245.  
  1246. #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  1247. #define __yy_memcpy(TO,FROM,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  1248. #else                /* not GNU C or C++ */
  1249. #ifndef __cplusplus
  1250.  
  1251. /* This is the most reliable way to avoid incompatibilities
  1252.    in available built-in functions on various systems.  */
  1253. static void
  1254. __yy_memcpy (to, from, count)
  1255.      char *to;
  1256.      char *from;
  1257.      int count;
  1258. {
  1259.   register char *f = from;
  1260.   register char *t = to;
  1261.   register int i = count;
  1262.  
  1263.   while (i-- > 0)
  1264.     *t++ = *f++;
  1265. }
  1266.  
  1267. #else /* __cplusplus */
  1268.  
  1269. /* This is the most reliable way to avoid incompatibilities
  1270.    in available built-in functions on various systems.  */
  1271. static void
  1272. __yy_memcpy (char *to, char *from, int count)
  1273. {
  1274.   register char *f = from;
  1275.   register char *t = to;
  1276.   register int i = count;
  1277.  
  1278.   while (i-- > 0)
  1279.     *t++ = *f++;
  1280. }
  1281.  
  1282. #endif
  1283. #endif
  1284.  
  1285.  
  1286.  
  1287. /* The user can define YYPARSE_PARAM as the name of an argument to be passed
  1288.    into yyparse.  The argument should have type void *.
  1289.    It should actually point to an object.
  1290.    Grammar actions can access the variable by casting it
  1291.    to the proper pointer type.  */
  1292.  
  1293. #ifdef YYPARSE_PARAM
  1294. #ifdef __cplusplus
  1295. #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  1296. #define YYPARSE_PARAM_DECL
  1297. #else /* not __cplusplus */
  1298. #define YYPARSE_PARAM_ARG YYPARSE_PARAM
  1299. #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  1300. #endif /* not __cplusplus */
  1301. #else /* not YYPARSE_PARAM */
  1302. #define YYPARSE_PARAM_ARG
  1303. #define YYPARSE_PARAM_DECL
  1304. #endif /* not YYPARSE_PARAM */
  1305.  
  1306. int
  1307. yyparse(YYPARSE_PARAM_ARG)
  1308.      YYPARSE_PARAM_DECL
  1309. {
  1310.   register int yystate;
  1311.   register int yyn;
  1312.   register short *yyssp;
  1313.   register YYSTYPE *yyvsp;
  1314.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  1315.   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  1316.  
  1317.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  1318.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  1319.  
  1320.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  1321.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  1322.  
  1323. #ifdef YYLSP_NEEDED
  1324.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  1325.   YYLTYPE *yyls = yylsa;
  1326.   YYLTYPE *yylsp;
  1327.  
  1328. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  1329. #else
  1330. #define YYPOPSTACK   (yyvsp--, yyssp--)
  1331. #endif
  1332.  
  1333.   int yystacksize = YYINITDEPTH;
  1334.  
  1335. #ifdef YYPURE
  1336.   int yychar;
  1337.   YYSTYPE yylval;
  1338.   int yynerrs;
  1339. #ifdef YYLSP_NEEDED
  1340.   YYLTYPE yylloc;
  1341. #endif
  1342. #endif
  1343.  
  1344.   YYSTYPE yyval;        /*  the variable used to return        */
  1345.                 /*  semantic values from the action    */
  1346.                 /*  routines                */
  1347.  
  1348.   int yylen;
  1349.  
  1350. #if YYDEBUG != 0
  1351.   if (yydebug)
  1352.     fprintf(stderr, "Starting parse\n");
  1353. #endif
  1354.  
  1355.   yystate = 0;
  1356.   yyerrstatus = 0;
  1357.   yynerrs = 0;
  1358.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  1359.  
  1360.   /* Initialize stack pointers.
  1361.      Waste one element of value and location stack
  1362.      so that they stay on the same level as the state stack.
  1363.      The wasted elements are never initialized.  */
  1364.  
  1365.   yyssp = yyss - 1;
  1366.   yyvsp = yyvs;
  1367. #ifdef YYLSP_NEEDED
  1368.   yylsp = yyls;
  1369. #endif
  1370.  
  1371. /* Push a new state, which is found in  yystate  .  */
  1372. /* In all cases, when you get here, the value and location stacks
  1373.    have just been pushed. so pushing a state here evens the stacks.  */
  1374. yynewstate:
  1375.  
  1376.   *++yyssp = yystate;
  1377.  
  1378.   if (yyssp >= yyss + yystacksize - 1)
  1379.     {
  1380.       /* Give user a chance to reallocate the stack */
  1381.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  1382.       YYSTYPE *yyvs1 = yyvs;
  1383.       short *yyss1 = yyss;
  1384. #ifdef YYLSP_NEEDED
  1385.       YYLTYPE *yyls1 = yyls;
  1386. #endif
  1387.  
  1388.       /* Get the current used size of the three stacks, in elements.  */
  1389.       int size = yyssp - yyss + 1;
  1390.  
  1391. #ifdef yyoverflow
  1392.       /* Each stack pointer address is followed by the size of
  1393.      the data in use in that stack, in bytes.  */
  1394. #ifdef YYLSP_NEEDED
  1395.       /* This used to be a conditional around just the two extra args,
  1396.      but that might be undefined if yyoverflow is a macro.  */
  1397.       yyoverflow("parser stack overflow",
  1398.          &yyss1, size * sizeof (*yyssp),
  1399.          &yyvs1, size * sizeof (*yyvsp),
  1400.          &yyls1, size * sizeof (*yylsp),
  1401.          &yystacksize);
  1402. #else
  1403.       yyoverflow("parser stack overflow",
  1404.          &yyss1, size * sizeof (*yyssp),
  1405.          &yyvs1, size * sizeof (*yyvsp),
  1406.          &yystacksize);
  1407. #endif
  1408.  
  1409.       yyss = yyss1; yyvs = yyvs1;
  1410. #ifdef YYLSP_NEEDED
  1411.       yyls = yyls1;
  1412. #endif
  1413. #else /* no yyoverflow */
  1414.       /* Extend the stack our own way.  */
  1415.       if (yystacksize >= YYMAXDEPTH)
  1416.     {
  1417.       yyerror("parser stack overflow");
  1418.       return 2;
  1419.     }
  1420.       yystacksize *= 2;
  1421.       if (yystacksize > YYMAXDEPTH)
  1422.     yystacksize = YYMAXDEPTH;
  1423.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  1424.       __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
  1425.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  1426.       __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
  1427. #ifdef YYLSP_NEEDED
  1428.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  1429.       __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
  1430. #endif
  1431. #endif /* no yyoverflow */
  1432.  
  1433.       yyssp = yyss + size - 1;
  1434.       yyvsp = yyvs + size - 1;
  1435. #ifdef YYLSP_NEEDED
  1436.       yylsp = yyls + size - 1;
  1437. #endif
  1438.  
  1439. #if YYDEBUG != 0
  1440.       if (yydebug)
  1441.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  1442. #endif
  1443.  
  1444.       if (yyssp >= yyss + yystacksize - 1)
  1445.     YYABORT;
  1446.     }
  1447.  
  1448. #if YYDEBUG != 0
  1449.   if (yydebug)
  1450.     fprintf(stderr, "Entering state %d\n", yystate);
  1451. #endif
  1452.  
  1453.   goto yybackup;
  1454.  yybackup:
  1455.  
  1456. /* Do appropriate processing given the current state.  */
  1457. /* Read a lookahead token if we need one and don't already have one.  */
  1458. /* yyresume: */
  1459.  
  1460.   /* First try to decide what to do without reference to lookahead token.  */
  1461.  
  1462.   yyn = yypact[yystate];
  1463.   if (yyn == YYFLAG)
  1464.     goto yydefault;
  1465.  
  1466.   /* Not known => get a lookahead token if don't already have one.  */
  1467.  
  1468.   /* yychar is either YYEMPTY or YYEOF
  1469.      or a valid token in external form.  */
  1470.  
  1471.   if (yychar == YYEMPTY)
  1472.     {
  1473. #if YYDEBUG != 0
  1474.       if (yydebug)
  1475.     fprintf(stderr, "Reading a token: ");
  1476. #endif
  1477.       yychar = YYLEX;
  1478.     }
  1479.  
  1480.   /* Convert token to internal form (in yychar1) for indexing tables with */
  1481.  
  1482.   if (yychar <= 0)        /* This means end of input. */
  1483.     {
  1484.       yychar1 = 0;
  1485.       yychar = YYEOF;        /* Don't call YYLEX any more */
  1486.  
  1487. #if YYDEBUG != 0
  1488.       if (yydebug)
  1489.     fprintf(stderr, "Now at end of input.\n");
  1490. #endif
  1491.     }
  1492.   else
  1493.     {
  1494.       yychar1 = YYTRANSLATE(yychar);
  1495.  
  1496. #if YYDEBUG != 0
  1497.       if (yydebug)
  1498.     {
  1499.       fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  1500.       /* Give the individual parser a way to print the precise meaning
  1501.          of a token, for further debugging info.  */
  1502. #ifdef YYPRINT
  1503.       YYPRINT (stderr, yychar, yylval);
  1504. #endif
  1505.       fprintf (stderr, ")\n");
  1506.     }
  1507. #endif
  1508.     }
  1509.  
  1510.   yyn += yychar1;
  1511.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  1512.     goto yydefault;
  1513.  
  1514.   yyn = yytable[yyn];
  1515.  
  1516.   /* yyn is what to do for this token type in this state.
  1517.      Negative => reduce, -yyn is rule number.
  1518.      Positive => shift, yyn is new state.
  1519.        New state is final state => don't bother to shift,
  1520.        just return success.
  1521.      0, or most negative number => error.  */
  1522.  
  1523.   if (yyn < 0)
  1524.     {
  1525.       if (yyn == YYFLAG)
  1526.     goto yyerrlab;
  1527.       yyn = -yyn;
  1528.       goto yyreduce;
  1529.     }
  1530.   else if (yyn == 0)
  1531.     goto yyerrlab;
  1532.  
  1533.   if (yyn == YYFINAL)
  1534.     YYACCEPT;
  1535.  
  1536.   /* Shift the lookahead token.  */
  1537.  
  1538. #if YYDEBUG != 0
  1539.   if (yydebug)
  1540.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  1541. #endif
  1542.  
  1543.   /* Discard the token being shifted unless it is eof.  */
  1544.   if (yychar != YYEOF)
  1545.     yychar = YYEMPTY;
  1546.  
  1547.   *++yyvsp = yylval;
  1548. #ifdef YYLSP_NEEDED
  1549.   *++yylsp = yylloc;
  1550. #endif
  1551.  
  1552.   /* count tokens shifted since error; after three, turn off error status.  */
  1553.   if (yyerrstatus) yyerrstatus--;
  1554.  
  1555.   yystate = yyn;
  1556.   goto yynewstate;
  1557.  
  1558. /* Do the default action for the current state.  */
  1559. yydefault:
  1560.  
  1561.   yyn = yydefact[yystate];
  1562.   if (yyn == 0)
  1563.     goto yyerrlab;
  1564.  
  1565. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  1566. yyreduce:
  1567.   yylen = yyr2[yyn];
  1568.   if (yylen > 0)
  1569.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  1570.  
  1571. #if YYDEBUG != 0
  1572.   if (yydebug)
  1573.     {
  1574.       int i;
  1575.  
  1576.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  1577.            yyn, yyrline[yyn]);
  1578.  
  1579.       /* Print the symbols being reduced, and their result.  */
  1580.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  1581.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  1582.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  1583.     }
  1584. #endif
  1585.  
  1586.  
  1587.   switch (yyn) {
  1588.  
  1589. case 5:
  1590. { scope=0; reset(); common_comment=NULL; in_typedef=0; ;
  1591.     break;}
  1592. case 6:
  1593. { scope=0; reset(); common_comment=NULL; in_typedef=0; ;
  1594.     break;}
  1595. case 9:
  1596. { scope=0; reset(); common_comment=NULL; in_typedef=0; ;
  1597.     break;}
  1598. case 10:
  1599. { scope=0; reset(); common_comment=NULL; in_typedef=0;
  1600.                   yyval=yyvsp[0]; ;
  1601.     break;}
  1602. case 11:
  1603. { in_type_spec=0; ;
  1604.     break;}
  1605. case 12:
  1606. { in_type_spec=0; ;
  1607.     break;}
  1608. case 13:
  1609. { if(!in_typedef) {common_comment=GetCurrentComment(); SetCurrentComment(common_comment);} ;
  1610.     break;}
  1611. case 15:
  1612. { if(yyvsp[-1]) yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); else yyval=yyvsp[0]; ;
  1613.     break;}
  1614. case 16:
  1615. { if(!current->type) current->type=yyvsp[0]; ;
  1616.     break;}
  1617. case 17:
  1618. { if(!current->type) current->type=yyvsp[-1];
  1619.                   yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1620.     break;}
  1621. case 19:
  1622. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1623.     break;}
  1624. case 21:
  1625. { in_type_spec=1; ;
  1626.     break;}
  1627. case 23:
  1628. {
  1629.                  if(!in_function && !in_funcdef && !in_structunion)
  1630.                    {
  1631.                     char* specific_comment=GetCurrentComment();
  1632.                     if(!common_comment)   SetCurrentComment(specific_comment); else
  1633.                     if(!specific_comment) SetCurrentComment(common_comment);   else
  1634.                     if(common_comment!=specific_comment) SetCurrentComment(ConcatStrings(3,common_comment," ",specific_comment)); else
  1635.                                           SetCurrentComment(common_comment);
  1636.                    }
  1637.  
  1638.                  if(in_typedef)
  1639.                    {
  1640.                     char* vname=strstr(yyvsp[0],current->name);
  1641.                     SeenTypedefName(current->name,vname[strlen(current->name)]=='('?-1:1);
  1642.                     if(!in_header)
  1643.                        SeenTypedef(current->name,ConcatStrings(3,current->qual,current->type,yyvsp[0]));
  1644.                    }
  1645.                  else
  1646.                     if(in_function==2)
  1647.                        SeenFunctionArg(current->name,ConcatStrings(3,current->qual,current->type,yyvsp[0]));
  1648.                     else
  1649.                       {
  1650.                        char* vname=strstr(yyvsp[0],current->name);
  1651.                        if(vname[strlen(current->name)]!='(' && IsATypeName(current->type)!='f')
  1652.                          {
  1653.                           if((in_funcbody==0 || scope&EXTERN_F) && !in_structunion && !(in_header==GLOBAL && scope&EXTERN_H))
  1654.                              SeenVariableDefinition(current->name,ConcatStrings(3,current->qual,current->type,yyvsp[0]),SCOPE);
  1655.                           else
  1656.                              if(in_funcbody)
  1657.                                 SeenScopeVariable(current->name);
  1658.                          }
  1659.                        else
  1660.                          {
  1661.                           SeenFunctionProto(current->name,in_funcbody);
  1662.                           DownScope();
  1663.                          }
  1664.                       }
  1665.  
  1666.                  if(in_function==3) in_function=0;
  1667.                 ;
  1668.     break;}
  1669. case 36:
  1670. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1671.     break;}
  1672. case 38:
  1673. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]);
  1674.                   { int i=0; while(yyvsp[-1][i] && yyvsp[-1][i]=='*') i++; if(!yyvsp[-1][i]) in_type_spec=0; } ;
  1675.     break;}
  1676. case 39:
  1677. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1678.     break;}
  1679. case 40:
  1680. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1681.     break;}
  1682. case 41:
  1683. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1684.     break;}
  1685. case 42:
  1686. { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1687.     break;}
  1688. case 43:
  1689. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1690.     break;}
  1691. case 44:
  1692. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1693.     break;}
  1694. case 45:
  1695. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1696.     break;}
  1697. case 46:
  1698. { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1699.     break;}
  1700. case 47:
  1701. { in_type_spec=0; ;
  1702.     break;}
  1703. case 48:
  1704. { in_type_spec=0; yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1705.     break;}
  1706. case 50:
  1707. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1708.     break;}
  1709. case 51:
  1710. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1711.     break;}
  1712. case 52:
  1713. { yyval=ConcatStrings(4,yyvsp[-2]," ",yyvsp[-1],yyvsp[0]); ;
  1714.     break;}
  1715. case 54:
  1716. { if(yyvsp[-1][0]=='*' && yyvsp[-1][1]==' ') { yyvsp[-1]=&yyvsp[-1][1]; yyvsp[-1][0]='*'; }
  1717.                   yyval=ConcatStrings(4," ",yyvsp[-2],yyvsp[-1],yyvsp[0]);
  1718.                 ;
  1719.     break;}
  1720. case 57:
  1721. { yyval=ConcatStrings(2," ",yyvsp[0]); current->name=yyvsp[0];
  1722.                   if(!current->type) current->type="int";
  1723.                   if(in_funcdef==1 && in_function!=3 && !in_structunion) SeenScopeVariable(yyvsp[0]); ;
  1724.     break;}
  1725. case 58:
  1726. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1727.     break;}
  1728. case 59:
  1729. { in_type_spec=0; ;
  1730.     break;}
  1731. case 60:
  1732. { in_type_spec=1; ;
  1733.     break;}
  1734. case 61:
  1735. { yyval=ConcatStrings(4,yyvsp[-5],yyvsp[-4],yyvsp[-2],yyvsp[0]); ;
  1736.     break;}
  1737. case 63:
  1738. { yyval=NULL; ;
  1739.     break;}
  1740. case 64:
  1741. { yyval=NULL;
  1742.                   if(in_funcbody) scope|=EXTERN_F;
  1743.                   else if(in_header) scope|=EXTERN_H;
  1744.                   else scope|=EXTERNAL; ;
  1745.     break;}
  1746. case 65:
  1747. { yyval=NULL; ;
  1748.     break;}
  1749. case 66:
  1750. { yyval=NULL; scope |= LOCAL; ;
  1751.     break;}
  1752. case 67:
  1753. { yyval=NULL;
  1754.                   in_typedef=1; if(!in_header) SeenTypedef(NULL,NULL);
  1755.                   common_comment=GetCurrentComment(); ;
  1756.     break;}
  1757. case 68:
  1758. { yyval=NULL; scope |= INLINED; ;
  1759.     break;}
  1760. case 70:
  1761. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1762.     break;}
  1763. case 71:
  1764. { if(!current->type) current->qual=ConcatStrings(3,current->qual,yyvsp[0]," "); ;
  1765.     break;}
  1766. case 72:
  1767. { if(!current->type) current->qual=ConcatStrings(3,current->qual,yyvsp[0]," "); ;
  1768.     break;}
  1769. case 73:
  1770. { in_type_spec=1; ;
  1771.     break;}
  1772. case 83:
  1773. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1774.     break;}
  1775. case 84:
  1776. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1777.     break;}
  1778. case 86:
  1779. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1780.     break;}
  1781. case 87:
  1782. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1783.     break;}
  1784. case 96:
  1785. { in_type_spec=0; ;
  1786.     break;}
  1787. case 97:
  1788. { in_type_spec=0; yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1789.     break;}
  1790. case 100:
  1791. { push();
  1792.                   if(!in_header)
  1793.                     {
  1794.                      if(in_structunion) SeenStructUnionComp(yyvsp[-1],in_structunion);
  1795.                      else               SeenStructUnionStart(yyvsp[-1]);
  1796.                     }
  1797.                   in_structunion++; ;
  1798.     break;}
  1799. case 101:
  1800. { pop(); in_structunion--;
  1801.                   if(!in_structunion && !current->type) current->type=ConcatStrings(2,yyvsp[-4]," {...}");
  1802.                   if(!in_header && !in_structunion && in_typedef) SeenStructUnionEnd();
  1803.                   yyval=ConcatStrings(5,yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); ;
  1804.     break;}
  1805. case 102:
  1806. { push();
  1807.                   if(!in_header)
  1808.                     {
  1809.                      if(in_structunion) SeenStructUnionComp(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]),in_structunion);
  1810.                      else               SeenStructUnionStart(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]));
  1811.                     }
  1812.                   in_structunion++; ;
  1813.     break;}
  1814. case 103:
  1815. { pop(); in_structunion--;
  1816.                   if(!in_structunion && !current->type) current->type=ConcatStrings(3,yyvsp[-5]," ",yyvsp[-4]);
  1817.                   if(!in_header && !in_structunion) SeenStructUnionEnd();
  1818.                   yyval=ConcatStrings(7,yyvsp[-5]," ",yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]);;
  1819.     break;}
  1820. case 107:
  1821. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1822.     break;}
  1823. case 108:
  1824. { if(!in_header) SeenStructUnionComp(yyvsp[0],in_structunion); ;
  1825.     break;}
  1826. case 109:
  1827. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); if(!in_header) SeenStructUnionComp(yyvsp[-2],in_structunion); ;
  1828.     break;}
  1829. case 111:
  1830. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1831.     break;}
  1832. case 116:
  1833. { push();
  1834.                   if(!in_header)
  1835.                     {
  1836.                      if(in_structunion) SeenStructUnionComp(yyvsp[-1],in_structunion);
  1837.                      else               SeenStructUnionStart(yyvsp[-1]);
  1838.                     }
  1839.                   in_structunion++; ;
  1840.     break;}
  1841. case 117:
  1842. { pop(); in_structunion--;
  1843.                   if(!in_structunion && !current->type) current->type=ConcatStrings(2,yyvsp[-4]," {...}");
  1844.                   if(!in_header && !in_structunion && in_typedef) SeenStructUnionEnd();
  1845.                   yyval=ConcatStrings(5,yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); ;
  1846.     break;}
  1847. case 118:
  1848. { push();
  1849.                   if(!in_header)
  1850.                     {
  1851.                      if(in_structunion) SeenStructUnionComp(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]),in_structunion);
  1852.                      else               SeenStructUnionStart(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]));
  1853.                     }
  1854.                   in_structunion++; ;
  1855.     break;}
  1856. case 119:
  1857. { pop(); in_structunion--;
  1858.                   if(!in_structunion && !current->type) current->type=ConcatStrings(3,yyvsp[-5]," ",yyvsp[-4]);
  1859.                   if(!in_header && !in_structunion) SeenStructUnionEnd();
  1860.                   yyval=ConcatStrings(7,yyvsp[-5]," ",yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]);;
  1861.     break;}
  1862. case 120:
  1863. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1864.     break;}
  1865. case 125:
  1866. { push();
  1867.                   if(!in_header)
  1868.                     {
  1869.                      if(in_structunion) SeenStructUnionComp(yyvsp[-1],in_structunion);
  1870.                      else               SeenStructUnionStart(yyvsp[-1]);
  1871.                     }
  1872.                   in_structunion++; ;
  1873.     break;}
  1874. case 126:
  1875. { pop(); in_structunion--;
  1876.                   if(!in_structunion && !current->type) current->type=ConcatStrings(2,yyvsp[-4]," {...}");
  1877.                   if(!in_header && !in_structunion && in_typedef) SeenStructUnionEnd();
  1878.                   yyval=ConcatStrings(5,yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]); ;
  1879.     break;}
  1880. case 127:
  1881. { push();
  1882.                   if(!in_header)
  1883.                     {
  1884.                      if(in_structunion) SeenStructUnionComp(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]),in_structunion);
  1885.                      else               SeenStructUnionStart(ConcatStrings(3,yyvsp[-2]," ",yyvsp[-1]));
  1886.                     }
  1887.                   in_structunion++; ;
  1888.     break;}
  1889. case 128:
  1890. { pop(); in_structunion--;
  1891.                   if(!in_structunion && !current->type) current->type=ConcatStrings(3,yyvsp[-5]," ",yyvsp[-4]);
  1892.                   if(!in_header && !in_structunion) SeenStructUnionEnd();
  1893.                   yyval=ConcatStrings(7,yyvsp[-5]," ",yyvsp[-4]," ",yyvsp[-3],yyvsp[-1],yyvsp[0]);;
  1894.     break;}
  1895. case 129:
  1896. { yyval=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1897.     break;}
  1898. case 133:
  1899. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1900.     break;}
  1901. case 134:
  1902. { yyval = ConcatStrings(3, yyvsp[-1], " ", yyvsp[0]);
  1903.                   if(!in_header) SeenStructUnionComp(yyvsp[-1],in_structunion); ;
  1904.     break;}
  1905. case 135:
  1906. { yyval = ConcatStrings(3, yyvsp[-1], " ", yyvsp[0]);
  1907.                   if(!in_header) SeenStructUnionComp(yyvsp[-1],in_structunion); ;
  1908.     break;}
  1909. case 137:
  1910. { comp_type=yyvsp[0]; ;
  1911.     break;}
  1912. case 138:
  1913. { yyval=ConcatStrings(3,yyvsp[-3],yyvsp[-1],yyvsp[0]); reset(); in_type_spec=0; ;
  1914.     break;}
  1915. case 139:
  1916. { comp_type=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1917.     break;}
  1918. case 140:
  1919. { yyval=ConcatStrings(4,yyvsp[-4],yyvsp[-3],yyvsp[-1],yyvsp[0]); reset(); in_type_spec=0; ;
  1920.     break;}
  1921. case 141:
  1922. { comp_type=ConcatStrings(3,yyvsp[-1]," ",yyvsp[0]); ;
  1923.     break;}
  1924. case 142:
  1925. { yyval=ConcatStrings(4,yyvsp[-4],yyvsp[-3],yyvsp[-1],yyvsp[0]); reset(); in_type_spec=0; ;
  1926.     break;}
  1927. case 143:
  1928. { if(!in_header) SeenStructUnionComp(ConcatStrings(2,comp_type,yyvsp[0]),in_structunion); ;
  1929.     break;}
  1930. case 144:
  1931. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]);
  1932.                   if(!in_header) SeenStructUnionComp(ConcatStrings(2,comp_type,yyvsp[0]),in_structunion); ;
  1933.     break;}
  1934. case 147:
  1935. { if(in_function==2) { DownScope(); pop(); in_function=0; } ;
  1936.     break;}
  1937. case 148:
  1938. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1939.     break;}
  1940. case 149:
  1941. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  1942.     break;}
  1943. case 153:
  1944. { pop(); in_funcbody=1; in_function=0; ;
  1945.     break;}
  1946. case 154:
  1947. { in_funcbody=in_function=0; DownScope(); SeenFunctionDefinition(NULL); ;
  1948.     break;}
  1949. case 155:
  1950. { char *func_type,*fname=strstr(yyvsp[0],(current-1)->name),*parenth=strstr(yyvsp[0],"(");
  1951.                   if(parenth>fname)
  1952.                      {parenth[0]=0;func_type=ConcatStrings(3,(current-1)->qual,(current-1)->type,yyvsp[0]);}
  1953.                   else
  1954.                     {
  1955.                      int open=1;
  1956.                      char *argbeg=strstr(&parenth[1],"("),*argend;
  1957.                      argbeg[1]=0;
  1958.                      for(argend=argbeg+2;*argend;argend++)
  1959.                        {
  1960.                         if(*argend=='(') open++;
  1961.                         if(*argend==')') open--;
  1962.                         if(!open) break;
  1963.                        }
  1964.                      func_type=ConcatStrings(4,(current-1)->qual,(current-1)->type,yyvsp[0],argend);
  1965.                     }
  1966.                   SeenFunctionDefinition(func_type);
  1967.                 ;
  1968.     break;}
  1969. case 157:
  1970. { yyval=ConcatStrings(3,current->qual,current->type,yyvsp[0]); ;
  1971.     break;}
  1972. case 159:
  1973. { yyval=ConcatStrings(3,current->qual,current->type,yyvsp[-1]); ;
  1974.     break;}
  1975. case 160:
  1976. { push(); in_function=2; ;
  1977.     break;}
  1978. case 162:
  1979. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  1980.     break;}
  1981. case 163:
  1982. { push(); if(in_function==0) UpScope();
  1983.                   if(in_function==0 && !in_funcdef) in_function=1; if(in_function!=3) in_funcdef++; ;
  1984.     break;}
  1985. case 164:
  1986. { pop();  if(in_function!=3) in_funcdef--; if(in_funcdef==0) in_function=3;
  1987.                   yyval=ConcatStrings(4,yyvsp[-4],yyvsp[-3],yyvsp[-1],yyvsp[0]); ;
  1988.     break;}
  1989. case 165:
  1990. {
  1991.                   if(!in_funcdef && !in_function && !in_funcbody) SeenFunctionDeclaration(current->name,SCOPE);
  1992.                   in_type_spec=0;
  1993.                 ;
  1994.     break;}
  1995. case 166:
  1996. { if(in_function==1 && in_funcdef==1) SeenFunctionArg("void","void");
  1997.                   if(in_structunion) yyval=NULL; else yyval="void"; ;
  1998.     break;}
  1999. case 169:
  2000. { if(in_function==1 && in_funcdef==1 && in_funcbody==0) { SeenFunctionArg(yyvsp[0],NULL); SeenScopeVariable(yyvsp[0]); } ;
  2001.     break;}
  2002. case 170:
  2003. { if(in_function==1 && in_funcdef==1 && in_funcbody==0) { SeenFunctionArg(yyvsp[0],NULL); SeenScopeVariable(yyvsp[0]); }
  2004.                   yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2005.     break;}
  2006. case 172:
  2007. { if(in_function==1 && in_funcdef==1 && in_funcbody==0) SeenFunctionArg(yyvsp[0],yyvsp[0]);
  2008.                   yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2009.     break;}
  2010. case 173:
  2011. { if(in_function==1 && in_funcdef==1 && in_funcbody==0) SeenFunctionArg(strcmp("void",yyvsp[0])?current->name:"void",yyvsp[0]);
  2012.                   in_type_spec=0; ;
  2013.     break;}
  2014. case 174:
  2015. { if(in_function==1 && in_funcdef==1 && in_funcbody==0) SeenFunctionArg(current->name,yyvsp[0]);
  2016.                   in_type_spec=0; yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2017.     break;}
  2018. case 175:
  2019. { in_type_spec=0; yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  2020.     break;}
  2021. case 176:
  2022. { in_type_spec=0; ;
  2023.     break;}
  2024. case 177:
  2025. { in_type_spec=0; yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  2026.     break;}
  2027. case 192:
  2028. { UpScope(); reset(); ;
  2029.     break;}
  2030. case 193:
  2031. { DownScope(); ;
  2032.     break;}
  2033. case 234:
  2034. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2035.     break;}
  2036. case 251:
  2037. { yyval=ConcatStrings(5,yyvsp[-4],yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2038.     break;}
  2039. case 252:
  2040. { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2041.     break;}
  2042. case 254:
  2043. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2044.     break;}
  2045. case 256:
  2046. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2047.     break;}
  2048. case 258:
  2049. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2050.     break;}
  2051. case 260:
  2052. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2053.     break;}
  2054. case 262:
  2055. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2056.     break;}
  2057. case 264:
  2058. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2059.     break;}
  2060. case 268:
  2061. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2062.     break;}
  2063. case 274:
  2064. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2065.     break;}
  2066. case 278:
  2067. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2068.     break;}
  2069. case 282:
  2070. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2071.     break;}
  2072. case 298:
  2073. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  2074.     break;}
  2075. case 299:
  2076. { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2077.     break;}
  2078. case 303:
  2079. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  2080.     break;}
  2081. case 306:
  2082. { yyval=ConcatStrings(4,yyvsp[-3],yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2083.     break;}
  2084. case 307:
  2085. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  2086.     break;}
  2087. case 308:
  2088. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  2089.     break;}
  2090. case 309:
  2091. { yyval=ConcatStrings(2,yyvsp[-1],yyvsp[0]); ;
  2092.     break;}
  2093. case 312:
  2094. { if(!IsAScopeVariable(yyvsp[0])) SeenFunctionCall(yyvsp[0]); ;
  2095.     break;}
  2096. case 328:
  2097. { CheckFunctionVariableRef(yyvsp[0],in_funcbody); ;
  2098.     break;}
  2099. case 334:
  2100. { yyval=ConcatStrings(3,yyvsp[-2],yyvsp[-1],yyvsp[0]); ;
  2101.     break;}
  2102. case 335:
  2103. { push(); ;
  2104.     break;}
  2105. case 336:
  2106. { pop(); ;
  2107.     break;}
  2108. }
  2109.    /* the action file gets copied in in place of this dollarsign */
  2110.  
  2111.  
  2112.   yyvsp -= yylen;
  2113.   yyssp -= yylen;
  2114. #ifdef YYLSP_NEEDED
  2115.   yylsp -= yylen;
  2116. #endif
  2117.  
  2118. #if YYDEBUG != 0
  2119.   if (yydebug)
  2120.     {
  2121.       short *ssp1 = yyss - 1;
  2122.       fprintf (stderr, "state stack now");
  2123.       while (ssp1 != yyssp)
  2124.     fprintf (stderr, " %d", *++ssp1);
  2125.       fprintf (stderr, "\n");
  2126.     }
  2127. #endif
  2128.  
  2129.   *++yyvsp = yyval;
  2130.  
  2131. #ifdef YYLSP_NEEDED
  2132.   yylsp++;
  2133.   if (yylen == 0)
  2134.     {
  2135.       yylsp->first_line = yylloc.first_line;
  2136.       yylsp->first_column = yylloc.first_column;
  2137.       yylsp->last_line = (yylsp-1)->last_line;
  2138.       yylsp->last_column = (yylsp-1)->last_column;
  2139.       yylsp->text = 0;
  2140.     }
  2141.   else
  2142.     {
  2143.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  2144.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  2145.     }
  2146. #endif
  2147.  
  2148.   /* Now "shift" the result of the reduction.
  2149.      Determine what state that goes to,
  2150.      based on the state we popped back to
  2151.      and the rule number reduced by.  */
  2152.  
  2153.   yyn = yyr1[yyn];
  2154.  
  2155.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  2156.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  2157.     yystate = yytable[yystate];
  2158.   else
  2159.     yystate = yydefgoto[yyn - YYNTBASE];
  2160.  
  2161.   goto yynewstate;
  2162.  
  2163. yyerrlab:   /* here on detecting error */
  2164.  
  2165.   if (! yyerrstatus)
  2166.     /* If not already recovering from an error, report this error.  */
  2167.     {
  2168.       ++yynerrs;
  2169.  
  2170. #ifdef YYERROR_VERBOSE
  2171.       yyn = yypact[yystate];
  2172.  
  2173.       if (yyn > YYFLAG && yyn < YYLAST)
  2174.     {
  2175.       int size = 0;
  2176.       char *msg;
  2177.       int x, count;
  2178.  
  2179.       count = 0;
  2180.       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  2181.       for (x = (yyn < 0 ? -yyn : 0);
  2182.            x < (sizeof(yytname) / sizeof(char *)); x++)
  2183.         if (yycheck[x + yyn] == x)
  2184.           size += strlen(yytname[x]) + 15, count++;
  2185.       msg = (char *) malloc(size + 15);
  2186.       if (msg != 0)
  2187.         {
  2188.           strcpy(msg, "parse error");
  2189.  
  2190.           if (count < 5)
  2191.         {
  2192.           count = 0;
  2193.           for (x = (yyn < 0 ? -yyn : 0);
  2194.                x < (sizeof(yytname) / sizeof(char *)); x++)
  2195.             if (yycheck[x + yyn] == x)
  2196.               {
  2197.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  2198.             strcat(msg, yytname[x]);
  2199.             strcat(msg, "'");
  2200.             count++;
  2201.               }
  2202.         }
  2203.           yyerror(msg);
  2204.           free(msg);
  2205.         }
  2206.       else
  2207.         yyerror ("parse error; also virtual memory exceeded");
  2208.     }
  2209.       else
  2210. #endif /* YYERROR_VERBOSE */
  2211.     yyerror("parse error");
  2212.     }
  2213.  
  2214.   goto yyerrlab1;
  2215. yyerrlab1:   /* here on error raised explicitly by an action */
  2216.  
  2217.   if (yyerrstatus == 3)
  2218.     {
  2219.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  2220.  
  2221.       /* return failure if at end of input */
  2222.       if (yychar == YYEOF)
  2223.     YYABORT;
  2224.  
  2225. #if YYDEBUG != 0
  2226.       if (yydebug)
  2227.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  2228. #endif
  2229.  
  2230.       yychar = YYEMPTY;
  2231.     }
  2232.  
  2233.   /* Else will try to reuse lookahead token
  2234.      after shifting the error token.  */
  2235.  
  2236.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  2237.  
  2238.   goto yyerrhandle;
  2239.  
  2240. yyerrdefault:  /* current state does not do anything special for the error token. */
  2241.  
  2242. #if 0
  2243.   /* This is wrong; only states that explicitly want error tokens
  2244.      should shift them.  */
  2245.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  2246.   if (yyn) goto yydefault;
  2247. #endif
  2248.  
  2249. yyerrpop:   /* pop the current state because it cannot handle the error token */
  2250.  
  2251.   if (yyssp == yyss) YYABORT;
  2252.   yyvsp--;
  2253.   yystate = *--yyssp;
  2254. #ifdef YYLSP_NEEDED
  2255.   yylsp--;
  2256. #endif
  2257.  
  2258. #if YYDEBUG != 0
  2259.   if (yydebug)
  2260.     {
  2261.       short *ssp1 = yyss - 1;
  2262.       fprintf (stderr, "Error: state stack now");
  2263.       while (ssp1 != yyssp)
  2264.     fprintf (stderr, " %d", *++ssp1);
  2265.       fprintf (stderr, "\n");
  2266.     }
  2267. #endif
  2268.  
  2269. yyerrhandle:
  2270.  
  2271.   yyn = yypact[yystate];
  2272.   if (yyn == YYFLAG)
  2273.     goto yyerrdefault;
  2274.  
  2275.   yyn += YYTERROR;
  2276.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  2277.     goto yyerrdefault;
  2278.  
  2279.   yyn = yytable[yyn];
  2280.   if (yyn < 0)
  2281.     {
  2282.       if (yyn == YYFLAG)
  2283.     goto yyerrpop;
  2284.       yyn = -yyn;
  2285.       goto yyreduce;
  2286.     }
  2287.   else if (yyn == 0)
  2288.     goto yyerrpop;
  2289.  
  2290.   if (yyn == YYFINAL)
  2291.     YYACCEPT;
  2292.  
  2293. #if YYDEBUG != 0
  2294.   if (yydebug)
  2295.     fprintf(stderr, "Shifting error token, ");
  2296. #endif
  2297.  
  2298.   *++yyvsp = yylval;
  2299. #ifdef YYLSP_NEEDED
  2300.   *++yylsp = yylloc;
  2301. #endif
  2302.  
  2303.   yystate = yyn;
  2304.   goto yynewstate;
  2305. }
  2306.  
  2307.  
  2308. #if YYDEBUG
  2309.  
  2310. static int   last_yylex[11];
  2311. static char *last_yylval[11];
  2312. static int count=0,modcount=0;
  2313.  
  2314. #endif /* YYDEBUG */
  2315.  
  2316.  
  2317.  /*++++++++++++++++++++++++++++++++++++++
  2318.   Stop parsing the current file, due to an error.
  2319.  
  2320.   char *s The error message to print out.
  2321.   ++++++++++++++++++++++++++++++++++++++*/
  2322.  
  2323. static void yyerror( char *s )
  2324. {
  2325. #if YYDEBUG
  2326.  int i;
  2327. #endif
  2328.  
  2329.  fflush(stdout);
  2330.  fprintf(stderr,"%s:%d: cxref: %s\n\n",parse_file,parse_line,s);
  2331.  
  2332. #if YYDEBUG
  2333.  
  2334.  fprintf(stderr,"The previous 10, current and next 10 symbols are:\n");
  2335.  
  2336.  for(i=count>10?count-11:0,modcount=i%11;i<count-1;i++,modcount=i%11)
  2337. #ifdef YYBISON
  2338.     fprintf(stderr,"%3d | %3d : %16s : %s\n",i+1-count,last_yylex[modcount],last_yylex[modcount]>255?yytname[last_yylex[modcount]-255]:"",last_yylval[modcount]);
  2339. #else
  2340.     fprintf(stderr,"%3d | %3d : %s\n",i+1-count,last_yylex[modcount],last_yylval[modcount]);
  2341. #endif
  2342.  
  2343. #ifdef YYBISON
  2344.  fprintf(stderr,"  0 | %3d : %16s : %s\n",yychar,yychar>255?yytname[yychar-255]:"",yylval);
  2345. #else
  2346.  fprintf(stderr,"  0 | %3d : %s\n",yychar,yylval);
  2347. #endif
  2348.  
  2349.  for(i=0;i<10;i++)
  2350.    {
  2351.     yychar=yylex();
  2352.     if(!yychar)
  2353.       {fprintf(stderr,"END OF FILE\n");break;}
  2354. #ifdef YYBISON
  2355.     fprintf(stderr,"%3d | %3d : %16s : %s\n",i+1,yychar,yychar>255?yytname[yychar-255]:"",yylval);
  2356. #else
  2357.     fprintf(stderr,"%3d | %3d : %s\n",i+1,yychar,yylval);
  2358. #endif
  2359.    }
  2360.  
  2361.  fprintf(stderr,"\n");
  2362.  
  2363. #endif /* YYDEBUG */
  2364.  
  2365.  /* Finish off the input. */
  2366.  
  2367. #undef yylex
  2368.  
  2369.  if(yychar)
  2370.     while((yychar=yylex()));
  2371. }
  2372.  
  2373.  
  2374.  /*++++++++++++++++++++++++++++++++++++++
  2375.   Call the lexer, the feedback from the parser to the lexer is applied here.
  2376.  
  2377.   int cxref_yylex Returns the value from the lexer, modified due to parser feedback.
  2378.   ++++++++++++++++++++++++++++++++++++++*/
  2379.  
  2380. static int cxref_yylex(void)
  2381. {
  2382.  static int last_yyl=0;
  2383.  int yyl=yylex();
  2384.  
  2385.  if(yyl==TYPE_NAME)
  2386.     if(in_type_spec || last_yyl==TYPE_NAME ||
  2387.        last_yyl==CHAR || last_yyl==SHORT || last_yyl==INT || last_yyl==LONG ||
  2388.        last_yyl==SIGNED || last_yyl==UNSIGNED ||
  2389.        last_yyl==FLOAT || last_yyl==DOUBLE)
  2390.        yyl=IDENTIFIER;
  2391.  
  2392.  last_yyl=yyl;
  2393.  
  2394. #if YYDEBUG
  2395.  
  2396.  last_yylex [modcount]=yyl;
  2397.  last_yylval[modcount]=yylval;
  2398.  
  2399.  if(yyl)
  2400.    {
  2401.     count++;
  2402.     modcount=count%11;
  2403.    }
  2404.  else
  2405.    {
  2406.     count=0;
  2407.     modcount=0;
  2408.    }
  2409.  
  2410. #if YYDEBUG == 2
  2411.  
  2412.  if(yyl)
  2413. #ifdef YYBISON
  2414.     printf("#parse.y# %6d | %16s:%4d | %3d : %16s : %s\n",count,parse_file,parse_line,yyl,yyl>255?yytname[yyl-255]:"",yylval);
  2415. #else
  2416.     printf("#parse.y# %6d | %16s:%4d | %3d : %s\n",count,parse_file,parse_line,yyl,yylval);
  2417. #endif /* YYBISON */
  2418.  else
  2419.     printf("#parse.y# %6d | %16s:%4d | END OF FILE\n",count,parse_file,parse_line);
  2420.  
  2421.  fflush(stdout);
  2422.  
  2423. #endif /* YYDEBUG==2 */
  2424.  
  2425. #endif /* YYDEBUG */
  2426.  
  2427.  return(yyl);
  2428. }
  2429.